<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="zh">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=11"/>
<meta name="generator" content="Doxygen 1.9.8"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>My Project: HttpResponse.h 源文件</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr id="projectrow">
  <td id="projectalign">
   <div id="projectname">My Project
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- 制作者 Doxygen 1.9.8 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
var searchBox = new SearchBox("searchBox", "search/",'.html');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
$(function() {
  initMenu('',true,false,'search.php','搜索');
  $(document).ready(function() { init_search(); });
});
/* @license-end */
</script>
<div id="main-nav"></div>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
$(document).ready(function() { init_codefold(0); });
/* @license-end */
</script>
</div><!-- top -->
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<div id="MSearchResults">
<div class="SRPage">
<div id="SRIndex">
<div id="SRResults"></div>
<div class="SRStatus" id="Loading">载入中...</div>
<div class="SRStatus" id="Searching">搜索中...</div>
<div class="SRStatus" id="NoMatches">未找到</div>
</div>
</div>
</div>
</div>

<div class="header">
  <div class="headertitle"><div class="title">HttpResponse.h</div></div>
</div><!--header-->
<div class="contents">
<a href="HttpResponse_8h.html">浏览该文件的文档.</a><div class="fragment"><div class="line"><a id="l00001" name="l00001"></a><span class="lineno">    1</span> </div>
<div class="line"><a id="l00014" name="l00014"></a><span class="lineno">   14</span><span class="preprocessor">#pragma once</span></div>
<div class="line"><a id="l00015" name="l00015"></a><span class="lineno">   15</span> </div>
<div class="line"><a id="l00016" name="l00016"></a><span class="lineno">   16</span><span class="preprocessor">#include &lt;<a class="code" href="exports_8h.html">drogon/exports.h</a>&gt;</span></div>
<div class="line"><a id="l00017" name="l00017"></a><span class="lineno">   17</span><span class="preprocessor">#include &lt;trantor/net/Certificate.h&gt;</span></div>
<div class="line"><a id="l00018" name="l00018"></a><span class="lineno">   18</span><span class="preprocessor">#include &lt;trantor/net/callbacks.h&gt;</span></div>
<div class="line"><a id="l00019" name="l00019"></a><span class="lineno">   19</span><span class="preprocessor">#include &lt;trantor/net/AsyncStream.h&gt;</span></div>
<div class="line"><a id="l00020" name="l00020"></a><span class="lineno">   20</span><span class="preprocessor">#include &lt;<a class="code" href="DrClassMap_8h.html">drogon/DrClassMap.h</a>&gt;</span></div>
<div class="line"><a id="l00021" name="l00021"></a><span class="lineno">   21</span><span class="preprocessor">#include &lt;<a class="code" href="Cookie_8h.html">drogon/Cookie.h</a>&gt;</span></div>
<div class="line"><a id="l00022" name="l00022"></a><span class="lineno">   22</span><span class="preprocessor">#include &lt;<a class="code" href="HttpRequest_8h.html">drogon/HttpRequest.h</a>&gt;</span></div>
<div class="line"><a id="l00023" name="l00023"></a><span class="lineno">   23</span><span class="preprocessor">#include &lt;<a class="code" href="HttpTypes_8h.html">drogon/HttpTypes.h</a>&gt;</span></div>
<div class="line"><a id="l00024" name="l00024"></a><span class="lineno">   24</span><span class="preprocessor">#include &lt;<a class="code" href="HttpViewData_8h.html">drogon/HttpViewData.h</a>&gt;</span></div>
<div class="line"><a id="l00025" name="l00025"></a><span class="lineno">   25</span><span class="preprocessor">#include &lt;drogon/utils/Utilities.h&gt;</span></div>
<div class="line"><a id="l00026" name="l00026"></a><span class="lineno">   26</span><span class="preprocessor">#include &lt;json/json.h&gt;</span></div>
<div class="line"><a id="l00027" name="l00027"></a><span class="lineno">   27</span><span class="preprocessor">#include &lt;memory&gt;</span></div>
<div class="line"><a id="l00028" name="l00028"></a><span class="lineno">   28</span><span class="preprocessor">#include &lt;string&gt;</span></div>
<div class="line"><a id="l00029" name="l00029"></a><span class="lineno">   29</span><span class="preprocessor">#include &lt;string_view&gt;</span></div>
<div class="line"><a id="l00030" name="l00030"></a><span class="lineno">   30</span> </div>
<div class="line"><a id="l00031" name="l00031"></a><span class="lineno">   31</span><span class="keyword">namespace </span><a class="code hl_namespace" href="namespacedrogon.html">drogon</a></div>
<div class="line"><a id="l00032" name="l00032"></a><span class="lineno">   32</span>{</div>
<div class="line"><a id="l00034" name="l00034"></a><span class="lineno">   34</span><span class="keyword">class </span>HttpResponse;</div>
<div class="line"><a id="l00035" name="l00035"></a><span class="lineno">   35</span><span class="keyword">using </span><a class="code hl_typedef" href="namespacedrogon.html#ab2a2d829bb017f43c2c9de72f4042baa">HttpResponsePtr</a> = std::shared_ptr&lt;HttpResponse&gt;;</div>
<div class="line"><a id="l00036" name="l00036"></a><span class="lineno">   36</span> </div>
<div class="line"><a id="l00041" name="l00041"></a><span class="lineno">   41</span><span class="keyword">template</span> &lt;<span class="keyword">typename</span> T&gt;</div>
<div class="foldopen" id="foldopen00042" data-start="{" data-end="}">
<div class="line"><a id="l00042" name="l00042"></a><span class="lineno"><a class="line" href="namespacedrogon.html#a938517a807e39a9078d7b76c4ea95306">   42</a></span>T <a class="code hl_function" href="namespacedrogon.html#a938517a807e39a9078d7b76c4ea95306">fromResponse</a>(<span class="keyword">const</span> <a class="code hl_class" href="classdrogon_1_1HttpResponse.html">HttpResponse</a> &amp;resp)</div>
<div class="line"><a id="l00043" name="l00043"></a><span class="lineno">   43</span>{</div>
<div class="line"><a id="l00044" name="l00044"></a><span class="lineno">   44</span>    LOG_ERROR</div>
<div class="line"><a id="l00045" name="l00045"></a><span class="lineno">   45</span>        &lt;&lt; <span class="stringliteral">&quot;You must specialize the fromResponse template for the type of &quot;</span></div>
<div class="line"><a id="l00046" name="l00046"></a><span class="lineno">   46</span>        &lt;&lt; <a class="code hl_function" href="classdrogon_1_1DrClassMap.html#a3479980ccf7edf6b886a02a29af181e4">DrClassMap::demangle</a>(<span class="keyword">typeid</span>(T).name());</div>
<div class="line"><a id="l00047" name="l00047"></a><span class="lineno">   47</span>    exit(1);</div>
<div class="line"><a id="l00048" name="l00048"></a><span class="lineno">   48</span>}</div>
</div>
<div class="line"><a id="l00049" name="l00049"></a><span class="lineno">   49</span> </div>
<div class="line"><a id="l00055" name="l00055"></a><span class="lineno">   55</span><span class="keyword">template</span> &lt;<span class="keyword">typename</span> T&gt;</div>
<div class="foldopen" id="foldopen00056" data-start="{" data-end="}">
<div class="line"><a id="l00056" name="l00056"></a><span class="lineno"><a class="line" href="namespacedrogon.html#afecc08ebc1de21d190ebb12b715b19f9">   56</a></span><a class="code hl_typedef" href="namespacedrogon.html#ab2a2d829bb017f43c2c9de72f4042baa">HttpResponsePtr</a> <a class="code hl_function" href="namespacedrogon.html#afecc08ebc1de21d190ebb12b715b19f9">toResponse</a>(T &amp;&amp;)</div>
<div class="line"><a id="l00057" name="l00057"></a><span class="lineno">   57</span>{</div>
<div class="line"><a id="l00058" name="l00058"></a><span class="lineno">   58</span>    LOG_ERROR &lt;&lt; <span class="stringliteral">&quot;You must specialize the toResponse template for the type of &quot;</span></div>
<div class="line"><a id="l00059" name="l00059"></a><span class="lineno">   59</span>              &lt;&lt; <a class="code hl_function" href="classdrogon_1_1DrClassMap.html#a3479980ccf7edf6b886a02a29af181e4">DrClassMap::demangle</a>(<span class="keyword">typeid</span>(T).name());</div>
<div class="line"><a id="l00060" name="l00060"></a><span class="lineno">   60</span>    exit(1);</div>
<div class="line"><a id="l00061" name="l00061"></a><span class="lineno">   61</span>}</div>
</div>
<div class="line"><a id="l00062" name="l00062"></a><span class="lineno">   62</span> </div>
<div class="line"><a id="l00063" name="l00063"></a><span class="lineno">   63</span><span class="keyword">template</span> &lt;&gt;</div>
<div class="line"><a id="l00064" name="l00064"></a><span class="lineno">   64</span><a class="code hl_typedef" href="namespacedrogon.html#ab2a2d829bb017f43c2c9de72f4042baa">HttpResponsePtr</a> <a class="code hl_function" href="namespacedrogon.html#a356eb07dafe947bcd57e42b0f0316489">toResponse&lt;const Json::Value &amp;&gt;</a>(<span class="keyword">const</span> Json::Value &amp;pJson);</div>
<div class="line"><a id="l00065" name="l00065"></a><span class="lineno">   65</span><span class="keyword">template</span> &lt;&gt;</div>
<div class="line"><a id="l00066" name="l00066"></a><span class="lineno">   66</span><a class="code hl_typedef" href="namespacedrogon.html#ab2a2d829bb017f43c2c9de72f4042baa">HttpResponsePtr</a> <a class="code hl_function" href="namespacedrogon.html#afecc08ebc1de21d190ebb12b715b19f9">toResponse</a>(Json::Value &amp;&amp;pJson);</div>
<div class="line"><a id="l00067" name="l00067"></a><span class="lineno">   67</span> </div>
<div class="line"><a id="l00068" name="l00068"></a><span class="lineno">   68</span><span class="keyword">template</span> &lt;&gt;</div>
<div class="foldopen" id="foldopen00069" data-start="{" data-end="}">
<div class="line"><a id="l00069" name="l00069"></a><span class="lineno"><a class="line" href="namespacedrogon.html#ab5d6977cec5fcf037ae3f2d4a06cf26a">   69</a></span><span class="keyword">inline</span> <a class="code hl_typedef" href="namespacedrogon.html#ab2a2d829bb017f43c2c9de72f4042baa">HttpResponsePtr</a> <a class="code hl_function" href="namespacedrogon.html#ab5d6977cec5fcf037ae3f2d4a06cf26a">toResponse&lt;Json::Value &amp;&gt;</a>(Json::Value &amp;pJson)</div>
<div class="line"><a id="l00070" name="l00070"></a><span class="lineno">   70</span>{</div>
<div class="line"><a id="l00071" name="l00071"></a><span class="lineno">   71</span>    <span class="keywordflow">return</span> <a class="code hl_function" href="namespacedrogon.html#afecc08ebc1de21d190ebb12b715b19f9">toResponse</a>((<span class="keyword">const</span> Json::Value &amp;)pJson);</div>
<div class="line"><a id="l00072" name="l00072"></a><span class="lineno">   72</span>}</div>
</div>
<div class="line"><a id="l00073" name="l00073"></a><span class="lineno">   73</span> </div>
<div class="foldopen" id="foldopen00074" data-start="{" data-end="};">
<div class="line"><a id="l00074" name="l00074"></a><span class="lineno"><a class="line" href="classdrogon_1_1ResponseStream.html">   74</a></span><span class="keyword">class </span><a class="code hl_define" href="exports_8h.html#a00d0a001c2dd03906272e00b0598182e">DROGON_EXPORT</a> <a class="code hl_class" href="classdrogon_1_1ResponseStream.html">ResponseStream</a></div>
<div class="line"><a id="l00075" name="l00075"></a><span class="lineno">   75</span>{</div>
<div class="line"><a id="l00076" name="l00076"></a><span class="lineno">   76</span>  <span class="keyword">public</span>:</div>
<div class="foldopen" id="foldopen00077" data-start="{" data-end="}">
<div class="line"><a id="l00077" name="l00077"></a><span class="lineno"><a class="line" href="classdrogon_1_1ResponseStream.html#afdc1d568c3c9b2268143dc7806df6988">   77</a></span>    <span class="keyword">explicit</span> <a class="code hl_function" href="classdrogon_1_1ResponseStream.html#afdc1d568c3c9b2268143dc7806df6988">ResponseStream</a>(trantor::AsyncStreamPtr asyncStream)</div>
<div class="line"><a id="l00078" name="l00078"></a><span class="lineno">   78</span>        : asyncStream_(std::move(asyncStream))</div>
<div class="line"><a id="l00079" name="l00079"></a><span class="lineno">   79</span>    {</div>
<div class="line"><a id="l00080" name="l00080"></a><span class="lineno">   80</span>    }</div>
</div>
<div class="line"><a id="l00081" name="l00081"></a><span class="lineno">   81</span> </div>
<div class="foldopen" id="foldopen00082" data-start="{" data-end="}">
<div class="line"><a id="l00082" name="l00082"></a><span class="lineno"><a class="line" href="classdrogon_1_1ResponseStream.html#a282f028bbb57e8a4886d523a751a1beb">   82</a></span>    <a class="code hl_function" href="classdrogon_1_1ResponseStream.html#a282f028bbb57e8a4886d523a751a1beb">~ResponseStream</a>()</div>
<div class="line"><a id="l00083" name="l00083"></a><span class="lineno">   83</span>    {</div>
<div class="line"><a id="l00084" name="l00084"></a><span class="lineno">   84</span>        close();</div>
<div class="line"><a id="l00085" name="l00085"></a><span class="lineno">   85</span>    }</div>
</div>
<div class="line"><a id="l00086" name="l00086"></a><span class="lineno">   86</span> </div>
<div class="foldopen" id="foldopen00087" data-start="{" data-end="}">
<div class="line"><a id="l00087" name="l00087"></a><span class="lineno"><a class="line" href="classdrogon_1_1ResponseStream.html#a75ba3e5850fa69ce3f335e04d58c093b">   87</a></span>    <span class="keywordtype">bool</span> <a class="code hl_function" href="classdrogon_1_1ResponseStream.html#a75ba3e5850fa69ce3f335e04d58c093b">send</a>(<span class="keyword">const</span> std::string &amp;data)</div>
<div class="line"><a id="l00088" name="l00088"></a><span class="lineno">   88</span>    {</div>
<div class="line"><a id="l00089" name="l00089"></a><span class="lineno">   89</span>        <span class="keywordflow">if</span> (!asyncStream_)</div>
<div class="line"><a id="l00090" name="l00090"></a><span class="lineno">   90</span>        {</div>
<div class="line"><a id="l00091" name="l00091"></a><span class="lineno">   91</span>            <span class="keywordflow">return</span> <span class="keyword">false</span>;</div>
<div class="line"><a id="l00092" name="l00092"></a><span class="lineno">   92</span>        }</div>
<div class="line"><a id="l00093" name="l00093"></a><span class="lineno">   93</span>        std::ostringstream oss;</div>
<div class="line"><a id="l00094" name="l00094"></a><span class="lineno">   94</span>        oss &lt;&lt; std::hex &lt;&lt; data.length() &lt;&lt; <span class="stringliteral">&quot;\r\n&quot;</span>;</div>
<div class="line"><a id="l00095" name="l00095"></a><span class="lineno">   95</span>        oss &lt;&lt; data &lt;&lt; <span class="stringliteral">&quot;\r\n&quot;</span>;</div>
<div class="line"><a id="l00096" name="l00096"></a><span class="lineno">   96</span>        <span class="keywordflow">return</span> asyncStream_-&gt;send(oss.str());</div>
<div class="line"><a id="l00097" name="l00097"></a><span class="lineno">   97</span>    }</div>
</div>
<div class="line"><a id="l00098" name="l00098"></a><span class="lineno">   98</span> </div>
<div class="foldopen" id="foldopen00099" data-start="{" data-end="}">
<div class="line"><a id="l00099" name="l00099"></a><span class="lineno"><a class="line" href="classdrogon_1_1ResponseStream.html#a64985051cf88263122f2bff7edeb67c7">   99</a></span>    <span class="keywordtype">void</span> <a class="code hl_function" href="classdrogon_1_1ResponseStream.html#a64985051cf88263122f2bff7edeb67c7">close</a>()</div>
<div class="line"><a id="l00100" name="l00100"></a><span class="lineno">  100</span>    {</div>
<div class="line"><a id="l00101" name="l00101"></a><span class="lineno">  101</span>        <span class="keywordflow">if</span> (asyncStream_)</div>
<div class="line"><a id="l00102" name="l00102"></a><span class="lineno">  102</span>        {</div>
<div class="line"><a id="l00103" name="l00103"></a><span class="lineno">  103</span>            <span class="keyword">static</span> std::string closeStream{<span class="stringliteral">&quot;0\r\n\r\n&quot;</span>};</div>
<div class="line"><a id="l00104" name="l00104"></a><span class="lineno">  104</span>            asyncStream_-&gt;send(closeStream);</div>
<div class="line"><a id="l00105" name="l00105"></a><span class="lineno">  105</span>            asyncStream_-&gt;close();</div>
<div class="line"><a id="l00106" name="l00106"></a><span class="lineno">  106</span>            asyncStream_.reset();</div>
<div class="line"><a id="l00107" name="l00107"></a><span class="lineno">  107</span>        }</div>
<div class="line"><a id="l00108" name="l00108"></a><span class="lineno">  108</span>    }</div>
</div>
<div class="line"><a id="l00109" name="l00109"></a><span class="lineno">  109</span> </div>
<div class="line"><a id="l00110" name="l00110"></a><span class="lineno">  110</span>  <span class="keyword">private</span>:</div>
<div class="line"><a id="l00111" name="l00111"></a><span class="lineno">  111</span>    trantor::AsyncStreamPtr asyncStream_;</div>
<div class="line"><a id="l00112" name="l00112"></a><span class="lineno">  112</span>};</div>
</div>
<div class="line"><a id="l00113" name="l00113"></a><span class="lineno">  113</span> </div>
<div class="line"><a id="l00114" name="l00114"></a><span class="lineno"><a class="line" href="namespacedrogon.html#ac29de97af31aae6951b30d7ef8749fd9">  114</a></span><span class="keyword">using </span><a class="code hl_typedef" href="namespacedrogon.html#ac29de97af31aae6951b30d7ef8749fd9">ResponseStreamPtr</a> = std::unique_ptr&lt;ResponseStream&gt;;</div>
<div class="line"><a id="l00115" name="l00115"></a><span class="lineno">  115</span> </div>
<div class="foldopen" id="foldopen00116" data-start="{" data-end="};">
<div class="line"><a id="l00116" name="l00116"></a><span class="lineno"><a class="line" href="classdrogon_1_1HttpResponse.html">  116</a></span><span class="keyword">class </span><a class="code hl_define" href="exports_8h.html#a00d0a001c2dd03906272e00b0598182e">DROGON_EXPORT</a> <a class="code hl_class" href="classdrogon_1_1HttpResponse.html">HttpResponse</a></div>
<div class="line"><a id="l00117" name="l00117"></a><span class="lineno">  117</span>{</div>
<div class="line"><a id="l00118" name="l00118"></a><span class="lineno">  118</span>  <span class="keyword">public</span>:</div>
<div class="line"><a id="l00131" name="l00131"></a><span class="lineno">  131</span>    <span class="keyword">template</span> &lt;<span class="keyword">typename</span> T&gt;</div>
<div class="foldopen" id="foldopen00132" data-start="{" data-end="}">
<div class="line"><a id="l00132" name="l00132"></a><span class="lineno"><a class="line" href="classdrogon_1_1HttpResponse.html#ae17cf4dedf9b48c946206745b5309726">  132</a></span>    <span class="keyword">operator</span> T()<span class="keyword"> const</span></div>
<div class="line"><a id="l00133" name="l00133"></a><span class="lineno">  133</span><span class="keyword">    </span>{</div>
<div class="line"><a id="l00134" name="l00134"></a><span class="lineno">  134</span>        <span class="keywordflow">return</span> fromResponse&lt;T&gt;(*<span class="keyword">this</span>);</div>
<div class="line"><a id="l00135" name="l00135"></a><span class="lineno">  135</span>    }</div>
</div>
<div class="line"><a id="l00136" name="l00136"></a><span class="lineno">  136</span> </div>
<div class="line"><a id="l00141" name="l00141"></a><span class="lineno">  141</span>    <span class="keyword">template</span> &lt;<span class="keyword">typename</span> T&gt;</div>
<div class="foldopen" id="foldopen00142" data-start="{" data-end="}">
<div class="line"><a id="l00142" name="l00142"></a><span class="lineno"><a class="line" href="classdrogon_1_1HttpResponse.html#aca1cb08090fe9c6195d708a63e32f65f">  142</a></span>    T <a class="code hl_function" href="classdrogon_1_1HttpResponse.html#aca1cb08090fe9c6195d708a63e32f65f">as</a>()<span class="keyword"> const</span></div>
<div class="line"><a id="l00143" name="l00143"></a><span class="lineno">  143</span><span class="keyword">    </span>{</div>
<div class="line"><a id="l00144" name="l00144"></a><span class="lineno">  144</span>        <span class="keywordflow">return</span> fromResponse&lt;T&gt;(*<span class="keyword">this</span>);</div>
<div class="line"><a id="l00145" name="l00145"></a><span class="lineno">  145</span>    }</div>
</div>
<div class="line"><a id="l00146" name="l00146"></a><span class="lineno">  146</span> </div>
<div class="line"><a id="l00148" name="l00148"></a><span class="lineno"><a class="line" href="classdrogon_1_1HttpResponse.html#a7091b020a4c8212b170c0ae71a77adea">  148</a></span>    <span class="keyword">virtual</span> <a class="code hl_enumeration" href="namespacedrogon.html#ad6cc6b2c3917537432fcde077e02cf2f">HttpStatusCode</a> <a class="code hl_function" href="classdrogon_1_1HttpResponse.html#a7091b020a4c8212b170c0ae71a77adea">statusCode</a>() <span class="keyword">const</span> = 0;</div>
<div class="line"><a id="l00149" name="l00149"></a><span class="lineno">  149</span> </div>
<div class="foldopen" id="foldopen00150" data-start="{" data-end="}">
<div class="line"><a id="l00150" name="l00150"></a><span class="lineno"><a class="line" href="classdrogon_1_1HttpResponse.html#a202565ddc4967af0a3d96f6d04781b97">  150</a></span>    <a class="code hl_enumeration" href="namespacedrogon.html#ad6cc6b2c3917537432fcde077e02cf2f">HttpStatusCode</a> <a class="code hl_function" href="classdrogon_1_1HttpResponse.html#a202565ddc4967af0a3d96f6d04781b97">getStatusCode</a>()<span class="keyword"> const</span></div>
<div class="line"><a id="l00151" name="l00151"></a><span class="lineno">  151</span><span class="keyword">    </span>{</div>
<div class="line"><a id="l00152" name="l00152"></a><span class="lineno">  152</span>        <span class="keywordflow">return</span> statusCode();</div>
<div class="line"><a id="l00153" name="l00153"></a><span class="lineno">  153</span>    }</div>
</div>
<div class="line"><a id="l00154" name="l00154"></a><span class="lineno">  154</span> </div>
<div class="line"><a id="l00156" name="l00156"></a><span class="lineno"><a class="line" href="classdrogon_1_1HttpResponse.html#ac1523682a313c946849b7234cc4891ab">  156</a></span>    <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code hl_function" href="classdrogon_1_1HttpResponse.html#ac1523682a313c946849b7234cc4891ab">setStatusCode</a>(<a class="code hl_enumeration" href="namespacedrogon.html#ad6cc6b2c3917537432fcde077e02cf2f">HttpStatusCode</a> code) = 0;</div>
<div class="line"><a id="l00157" name="l00157"></a><span class="lineno">  157</span> </div>
<div class="foldopen" id="foldopen00158" data-start="{" data-end="}">
<div class="line"><a id="l00158" name="l00158"></a><span class="lineno"><a class="line" href="classdrogon_1_1HttpResponse.html#abf88889bd7729e6f80ee8d5322c9e931">  158</a></span>    <span class="keywordtype">void</span> <a class="code hl_function" href="classdrogon_1_1HttpResponse.html#abf88889bd7729e6f80ee8d5322c9e931">setCustomStatusCode</a>(<span class="keywordtype">int</span> code,</div>
<div class="line"><a id="l00159" name="l00159"></a><span class="lineno">  159</span>                             std::string_view message = std::string_view{})</div>
<div class="line"><a id="l00160" name="l00160"></a><span class="lineno">  160</span>    {</div>
<div class="line"><a id="l00161" name="l00161"></a><span class="lineno">  161</span>        setCustomStatusCode(code, message.data(), message.length());</div>
<div class="line"><a id="l00162" name="l00162"></a><span class="lineno">  162</span>    }</div>
</div>
<div class="line"><a id="l00163" name="l00163"></a><span class="lineno">  163</span> </div>
<div class="line"><a id="l00165" name="l00165"></a><span class="lineno"><a class="line" href="classdrogon_1_1HttpResponse.html#a07e21a5e58fbd8b859a9810bf338403d">  165</a></span>    <span class="keyword">virtual</span> <span class="keyword">const</span> trantor::Date &amp;<a class="code hl_function" href="classdrogon_1_1HttpResponse.html#a07e21a5e58fbd8b859a9810bf338403d">creationDate</a>() <span class="keyword">const</span> = 0;</div>
<div class="line"><a id="l00166" name="l00166"></a><span class="lineno">  166</span> </div>
<div class="foldopen" id="foldopen00167" data-start="{" data-end="}">
<div class="line"><a id="l00167" name="l00167"></a><span class="lineno"><a class="line" href="classdrogon_1_1HttpResponse.html#acb269abb75024232eb5ebb70df076dc5">  167</a></span>    <span class="keyword">const</span> trantor::Date &amp;<a class="code hl_function" href="classdrogon_1_1HttpResponse.html#acb269abb75024232eb5ebb70df076dc5">getCreationDate</a>()<span class="keyword"> const</span></div>
<div class="line"><a id="l00168" name="l00168"></a><span class="lineno">  168</span><span class="keyword">    </span>{</div>
<div class="line"><a id="l00169" name="l00169"></a><span class="lineno">  169</span>        <span class="keywordflow">return</span> creationDate();</div>
<div class="line"><a id="l00170" name="l00170"></a><span class="lineno">  170</span>    }</div>
</div>
<div class="line"><a id="l00171" name="l00171"></a><span class="lineno">  171</span> </div>
<div class="line"><a id="l00173" name="l00173"></a><span class="lineno"><a class="line" href="classdrogon_1_1HttpResponse.html#aad3deeeee0abe826a7800402a24475b8">  173</a></span>    <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code hl_function" href="classdrogon_1_1HttpResponse.html#aad3deeeee0abe826a7800402a24475b8">setVersion</a>(<span class="keyword">const</span> <a class="code hl_enumeration" href="namespacedrogon.html#ac6b3a6bb435a379d956658fa20b067c1">Version</a> v) = 0;</div>
<div class="line"><a id="l00174" name="l00174"></a><span class="lineno">  174</span> </div>
<div class="line"><a id="l00176" name="l00176"></a><span class="lineno">  176</span> </div>
<div class="line"><a id="l00182" name="l00182"></a><span class="lineno"><a class="line" href="classdrogon_1_1HttpResponse.html#afde0d1d460db8890a988b546f8e37922">  182</a></span>    <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code hl_function" href="classdrogon_1_1HttpResponse.html#afde0d1d460db8890a988b546f8e37922">setCloseConnection</a>(<span class="keywordtype">bool</span> on) = 0;</div>
<div class="line"><a id="l00183" name="l00183"></a><span class="lineno">  183</span> </div>
<div class="line"><a id="l00185" name="l00185"></a><span class="lineno"><a class="line" href="classdrogon_1_1HttpResponse.html#a91282f3ceb97ea8c6625c9cd8ea98018">  185</a></span>    <span class="keyword">virtual</span> <span class="keywordtype">bool</span> <a class="code hl_function" href="classdrogon_1_1HttpResponse.html#a91282f3ceb97ea8c6625c9cd8ea98018">ifCloseConnection</a>() <span class="keyword">const</span> = 0;</div>
<div class="line"><a id="l00186" name="l00186"></a><span class="lineno">  186</span> </div>
<div class="line"><a id="l00190" name="l00190"></a><span class="lineno"><a class="line" href="classdrogon_1_1HttpResponse.html#a66d24be506a03dd6bd0b390632ba8d5c">  190</a></span>    <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code hl_function" href="classdrogon_1_1HttpResponse.html#a66d24be506a03dd6bd0b390632ba8d5c">setContentTypeCode</a>(<a class="code hl_enumeration" href="namespacedrogon.html#a2037a41934aeea1598d7468b4b8cb823">ContentType</a> type) = 0;</div>
<div class="line"><a id="l00191" name="l00191"></a><span class="lineno">  191</span> </div>
<div class="foldopen" id="foldopen00195" data-start="{" data-end="}">
<div class="line"><a id="l00195" name="l00195"></a><span class="lineno"><a class="line" href="classdrogon_1_1HttpResponse.html#ac9ee5b698aa6bfa317ef81cd69a6d821">  195</a></span>    <span class="keywordtype">void</span> <a class="code hl_function" href="classdrogon_1_1HttpResponse.html#ac9ee5b698aa6bfa317ef81cd69a6d821">setContentTypeString</a>(<span class="keyword">const</span> std::string_view &amp;typeString)</div>
<div class="line"><a id="l00196" name="l00196"></a><span class="lineno">  196</span>    {</div>
<div class="line"><a id="l00197" name="l00197"></a><span class="lineno">  197</span>        setContentTypeString(typeString.data(), typeString.size());</div>
<div class="line"><a id="l00198" name="l00198"></a><span class="lineno">  198</span>    }</div>
</div>
<div class="line"><a id="l00199" name="l00199"></a><span class="lineno">  199</span> </div>
<div class="foldopen" id="foldopen00203" data-start="{" data-end="}">
<div class="line"><a id="l00203" name="l00203"></a><span class="lineno"><a class="line" href="classdrogon_1_1HttpResponse.html#af254863ebc2d6f3ff9679515be4a4d61">  203</a></span>    <span class="keywordtype">void</span> <a class="code hl_function" href="classdrogon_1_1HttpResponse.html#af254863ebc2d6f3ff9679515be4a4d61">setContentTypeCodeAndCustomString</a>(<a class="code hl_enumeration" href="namespacedrogon.html#a2037a41934aeea1598d7468b4b8cb823">ContentType</a> type,</div>
<div class="line"><a id="l00204" name="l00204"></a><span class="lineno">  204</span>                                           <span class="keyword">const</span> std::string_view &amp;typeString)</div>
<div class="line"><a id="l00205" name="l00205"></a><span class="lineno">  205</span>    {</div>
<div class="line"><a id="l00206" name="l00206"></a><span class="lineno">  206</span>        setContentTypeCodeAndCustomString(type,</div>
<div class="line"><a id="l00207" name="l00207"></a><span class="lineno">  207</span>                                          typeString.data(),</div>
<div class="line"><a id="l00208" name="l00208"></a><span class="lineno">  208</span>                                          typeString.length());</div>
<div class="line"><a id="l00209" name="l00209"></a><span class="lineno">  209</span>    }</div>
</div>
<div class="line"><a id="l00210" name="l00210"></a><span class="lineno">  210</span> </div>
<div class="line"><a id="l00211" name="l00211"></a><span class="lineno">  211</span>    <span class="keyword">template</span> &lt;<span class="keywordtype">int</span> N&gt;</div>
<div class="foldopen" id="foldopen00212" data-start="{" data-end="}">
<div class="line"><a id="l00212" name="l00212"></a><span class="lineno"><a class="line" href="classdrogon_1_1HttpResponse.html#aa1f02075d07dd25e1d9650773858def2">  212</a></span>    <span class="keywordtype">void</span> <a class="code hl_function" href="classdrogon_1_1HttpResponse.html#aa1f02075d07dd25e1d9650773858def2">setContentTypeCodeAndCustomString</a>(<a class="code hl_enumeration" href="namespacedrogon.html#a2037a41934aeea1598d7468b4b8cb823">ContentType</a> type,</div>
<div class="line"><a id="l00213" name="l00213"></a><span class="lineno">  213</span>                                           <span class="keyword">const</span> <span class="keywordtype">char</span> (&amp;typeString)[N])</div>
<div class="line"><a id="l00214" name="l00214"></a><span class="lineno">  214</span>    {</div>
<div class="line"><a id="l00215" name="l00215"></a><span class="lineno">  215</span>        assert(N &gt; 0);</div>
<div class="line"><a id="l00216" name="l00216"></a><span class="lineno">  216</span>        setContentTypeCodeAndCustomString(type, typeString, N - 1);</div>
<div class="line"><a id="l00217" name="l00217"></a><span class="lineno">  217</span>    }</div>
</div>
<div class="line"><a id="l00218" name="l00218"></a><span class="lineno">  218</span> </div>
<div class="line"><a id="l00222" name="l00222"></a><span class="lineno">  222</span> </div>
<div class="line"><a id="l00224" name="l00224"></a><span class="lineno"><a class="line" href="classdrogon_1_1HttpResponse.html#a40d7c826a667934774e2b93c39e7a557">  224</a></span>    <span class="keyword">virtual</span> <a class="code hl_enumeration" href="namespacedrogon.html#a2037a41934aeea1598d7468b4b8cb823">ContentType</a> <a class="code hl_function" href="classdrogon_1_1HttpResponse.html#a40d7c826a667934774e2b93c39e7a557">contentType</a>() <span class="keyword">const</span> = 0;</div>
<div class="line"><a id="l00225" name="l00225"></a><span class="lineno">  225</span> </div>
<div class="foldopen" id="foldopen00226" data-start="{" data-end="}">
<div class="line"><a id="l00226" name="l00226"></a><span class="lineno"><a class="line" href="classdrogon_1_1HttpResponse.html#a954b1cb990ba8834eeb6678e9ae740b0">  226</a></span>    <a class="code hl_enumeration" href="namespacedrogon.html#a2037a41934aeea1598d7468b4b8cb823">ContentType</a> <a class="code hl_function" href="classdrogon_1_1HttpResponse.html#a954b1cb990ba8834eeb6678e9ae740b0">getContentType</a>()<span class="keyword"> const</span></div>
<div class="line"><a id="l00227" name="l00227"></a><span class="lineno">  227</span><span class="keyword">    </span>{</div>
<div class="line"><a id="l00228" name="l00228"></a><span class="lineno">  228</span>        <span class="keywordflow">return</span> contentType();</div>
<div class="line"><a id="l00229" name="l00229"></a><span class="lineno">  229</span>    }</div>
</div>
<div class="line"><a id="l00230" name="l00230"></a><span class="lineno">  230</span> </div>
<div class="line"><a id="l00232" name="l00232"></a><span class="lineno">  232</span> </div>
<div class="line"><a id="l00237" name="l00237"></a><span class="lineno"><a class="line" href="classdrogon_1_1HttpResponse.html#a94dacca25b2485e1dd750235986f9fdd">  237</a></span>    <span class="keyword">virtual</span> <span class="keyword">const</span> std::string &amp;<a class="code hl_function" href="classdrogon_1_1HttpResponse.html#a94dacca25b2485e1dd750235986f9fdd">getHeader</a>(std::string key) <span class="keyword">const</span> = 0;</div>
<div class="line"><a id="l00238" name="l00238"></a><span class="lineno">  238</span> </div>
<div class="line"><a id="l00244" name="l00244"></a><span class="lineno"><a class="line" href="classdrogon_1_1HttpResponse.html#a76f37d51bf036afb28aacaa229a1823b">  244</a></span>    <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code hl_function" href="classdrogon_1_1HttpResponse.html#a76f37d51bf036afb28aacaa229a1823b">removeHeader</a>(std::string key) = 0;</div>
<div class="line"><a id="l00245" name="l00245"></a><span class="lineno">  245</span> </div>
<div class="line"><a id="l00247" name="l00247"></a><span class="lineno"><a class="line" href="classdrogon_1_1HttpResponse.html#a4b5d3ef182dbf502aa1ce5f754735a2c">  247</a></span>    <span class="keyword">virtual</span> <span class="keyword">const</span> SafeStringMap&lt;std::string&gt; &amp;<a class="code hl_function" href="classdrogon_1_1HttpResponse.html#a4b5d3ef182dbf502aa1ce5f754735a2c">headers</a>() <span class="keyword">const</span> = 0;</div>
<div class="line"><a id="l00248" name="l00248"></a><span class="lineno">  248</span> </div>
<div class="foldopen" id="foldopen00250" data-start="{" data-end="}">
<div class="line"><a id="l00250" name="l00250"></a><span class="lineno"><a class="line" href="classdrogon_1_1HttpResponse.html#aee0e2cdc4ac1096ff9ad85d7ecaba38f">  250</a></span>    <span class="keyword">const</span> SafeStringMap&lt;std::string&gt; &amp;<a class="code hl_function" href="classdrogon_1_1HttpResponse.html#aee0e2cdc4ac1096ff9ad85d7ecaba38f">getHeaders</a>()<span class="keyword"> const</span></div>
<div class="line"><a id="l00251" name="l00251"></a><span class="lineno">  251</span><span class="keyword">    </span>{</div>
<div class="line"><a id="l00252" name="l00252"></a><span class="lineno">  252</span>        <span class="keywordflow">return</span> headers();</div>
<div class="line"><a id="l00253" name="l00253"></a><span class="lineno">  253</span>    }</div>
</div>
<div class="line"><a id="l00254" name="l00254"></a><span class="lineno">  254</span> </div>
<div class="line"><a id="l00262" name="l00262"></a><span class="lineno"><a class="line" href="classdrogon_1_1HttpResponse.html#a53ecb77166d6b2d40bda2a33346b271c">  262</a></span>    <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code hl_function" href="classdrogon_1_1HttpResponse.html#a53ecb77166d6b2d40bda2a33346b271c">addHeader</a>(std::string field, <span class="keyword">const</span> std::string &amp;value) = 0;</div>
<div class="line"><a id="l00263" name="l00263"></a><span class="lineno"><a class="line" href="classdrogon_1_1HttpResponse.html#a0506888a960fa85365cc729c5ca35eb0">  263</a></span>    <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code hl_function" href="classdrogon_1_1HttpResponse.html#a0506888a960fa85365cc729c5ca35eb0">addHeader</a>(std::string field, std::string &amp;&amp;value) = 0;</div>
<div class="line"><a id="l00264" name="l00264"></a><span class="lineno">  264</span> </div>
<div class="line"><a id="l00266" name="l00266"></a><span class="lineno"><a class="line" href="classdrogon_1_1HttpResponse.html#afb116c3db7cd2b29f8d6a574eb60a9b4">  266</a></span>    <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code hl_function" href="classdrogon_1_1HttpResponse.html#afb116c3db7cd2b29f8d6a574eb60a9b4">addCookie</a>(<span class="keyword">const</span> std::string &amp;key,</div>
<div class="line"><a id="l00267" name="l00267"></a><span class="lineno">  267</span>                           <span class="keyword">const</span> std::string &amp;value) = 0;</div>
<div class="line"><a id="l00268" name="l00268"></a><span class="lineno">  268</span> </div>
<div class="line"><a id="l00270" name="l00270"></a><span class="lineno"><a class="line" href="classdrogon_1_1HttpResponse.html#a7a97046bc1d9c458bc117860e6327eed">  270</a></span>    <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code hl_function" href="classdrogon_1_1HttpResponse.html#a7a97046bc1d9c458bc117860e6327eed">addCookie</a>(<span class="keyword">const</span> <a class="code hl_class" href="classdrogon_1_1Cookie.html">Cookie</a> &amp;cookie) = 0;</div>
<div class="line"><a id="l00271" name="l00271"></a><span class="lineno"><a class="line" href="classdrogon_1_1HttpResponse.html#ac65360ebe2d7e39013627fb7c1c97201">  271</a></span>    <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code hl_function" href="classdrogon_1_1HttpResponse.html#ac65360ebe2d7e39013627fb7c1c97201">addCookie</a>(<a class="code hl_class" href="classdrogon_1_1Cookie.html">Cookie</a> &amp;&amp;cookie) = 0;</div>
<div class="line"><a id="l00272" name="l00272"></a><span class="lineno">  272</span> </div>
<div class="line"><a id="l00275" name="l00275"></a><span class="lineno"><a class="line" href="classdrogon_1_1HttpResponse.html#a57164725a0789fe9458de20ac6b6c402">  275</a></span>    <span class="keyword">virtual</span> <span class="keyword">const</span> <a class="code hl_class" href="classdrogon_1_1Cookie.html">Cookie</a> &amp;<a class="code hl_function" href="classdrogon_1_1HttpResponse.html#a57164725a0789fe9458de20ac6b6c402">getCookie</a>(<span class="keyword">const</span> std::string &amp;key) <span class="keyword">const</span> = 0;</div>
<div class="line"><a id="l00276" name="l00276"></a><span class="lineno">  276</span> </div>
<div class="line"><a id="l00278" name="l00278"></a><span class="lineno"><a class="line" href="classdrogon_1_1HttpResponse.html#a569c7cd5efff996af64e1103243b2249">  278</a></span>    <span class="keyword">virtual</span> <span class="keyword">const</span> SafeStringMap&lt;Cookie&gt; &amp;<a class="code hl_function" href="classdrogon_1_1HttpResponse.html#a569c7cd5efff996af64e1103243b2249">cookies</a>() <span class="keyword">const</span> = 0;</div>
<div class="line"><a id="l00279" name="l00279"></a><span class="lineno">  279</span> </div>
<div class="foldopen" id="foldopen00281" data-start="{" data-end="}">
<div class="line"><a id="l00281" name="l00281"></a><span class="lineno"><a class="line" href="classdrogon_1_1HttpResponse.html#a6cecffb5a8b7095577a3bf5b2d6f0d6b">  281</a></span>    <span class="keyword">const</span> SafeStringMap&lt;Cookie&gt; &amp;<a class="code hl_function" href="classdrogon_1_1HttpResponse.html#a6cecffb5a8b7095577a3bf5b2d6f0d6b">getCookies</a>()<span class="keyword"> const</span></div>
<div class="line"><a id="l00282" name="l00282"></a><span class="lineno">  282</span><span class="keyword">    </span>{</div>
<div class="line"><a id="l00283" name="l00283"></a><span class="lineno">  283</span>        <span class="keywordflow">return</span> cookies();</div>
<div class="line"><a id="l00284" name="l00284"></a><span class="lineno">  284</span>    }</div>
</div>
<div class="line"><a id="l00285" name="l00285"></a><span class="lineno">  285</span> </div>
<div class="line"><a id="l00287" name="l00287"></a><span class="lineno"><a class="line" href="classdrogon_1_1HttpResponse.html#a78ef3f2563aeba016ae88cc7a0a6a123">  287</a></span>    <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code hl_function" href="classdrogon_1_1HttpResponse.html#a78ef3f2563aeba016ae88cc7a0a6a123">removeCookie</a>(<span class="keyword">const</span> std::string &amp;key) = 0;</div>
<div class="line"><a id="l00288" name="l00288"></a><span class="lineno">  288</span> </div>
<div class="line"><a id="l00290" name="l00290"></a><span class="lineno">  290</span> </div>
<div class="line"><a id="l00293" name="l00293"></a><span class="lineno"><a class="line" href="classdrogon_1_1HttpResponse.html#a18114e50a4274cebdab859bf8d9deb1e">  293</a></span>    <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code hl_function" href="classdrogon_1_1HttpResponse.html#a18114e50a4274cebdab859bf8d9deb1e">setBody</a>(<span class="keyword">const</span> std::string &amp;body) = 0;</div>
<div class="line"><a id="l00294" name="l00294"></a><span class="lineno">  294</span> </div>
<div class="line"><a id="l00296" name="l00296"></a><span class="lineno"><a class="line" href="classdrogon_1_1HttpResponse.html#a015c77c0a7a47f0e37347038ce4de81a">  296</a></span>    <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code hl_function" href="classdrogon_1_1HttpResponse.html#a015c77c0a7a47f0e37347038ce4de81a">setBody</a>(std::string &amp;&amp;body) = 0;</div>
<div class="line"><a id="l00297" name="l00297"></a><span class="lineno">  297</span> </div>
<div class="line"><a id="l00299" name="l00299"></a><span class="lineno">  299</span>    <span class="keyword">template</span> &lt;<span class="keywordtype">int</span> N&gt;</div>
<div class="foldopen" id="foldopen00300" data-start="{" data-end="}">
<div class="line"><a id="l00300" name="l00300"></a><span class="lineno"><a class="line" href="classdrogon_1_1HttpResponse.html#adc5e9e155d366c487c1601feca9b8203">  300</a></span>    <span class="keywordtype">void</span> <a class="code hl_function" href="classdrogon_1_1HttpResponse.html#adc5e9e155d366c487c1601feca9b8203">setBody</a>(<span class="keyword">const</span> <span class="keywordtype">char</span> (&amp;body)[N])</div>
<div class="line"><a id="l00301" name="l00301"></a><span class="lineno">  301</span>    {</div>
<div class="line"><a id="l00302" name="l00302"></a><span class="lineno">  302</span>        assert(strnlen(body, N) == N - 1);</div>
<div class="line"><a id="l00303" name="l00303"></a><span class="lineno">  303</span>        setBody(body, N - 1);</div>
<div class="line"><a id="l00304" name="l00304"></a><span class="lineno">  304</span>    }</div>
</div>
<div class="line"><a id="l00305" name="l00305"></a><span class="lineno">  305</span> </div>
<div class="foldopen" id="foldopen00307" data-start="{" data-end="}">
<div class="line"><a id="l00307" name="l00307"></a><span class="lineno"><a class="line" href="classdrogon_1_1HttpResponse.html#a63c26ba958c691523e807de77e8e8ed1">  307</a></span>    std::string_view <a class="code hl_function" href="classdrogon_1_1HttpResponse.html#a63c26ba958c691523e807de77e8e8ed1">body</a>()<span class="keyword"> const</span></div>
<div class="line"><a id="l00308" name="l00308"></a><span class="lineno">  308</span><span class="keyword">    </span>{</div>
<div class="line"><a id="l00309" name="l00309"></a><span class="lineno">  309</span>        <span class="keywordflow">return</span> std::string_view{getBodyData(), getBodyLength()};</div>
<div class="line"><a id="l00310" name="l00310"></a><span class="lineno">  310</span>    }</div>
</div>
<div class="line"><a id="l00311" name="l00311"></a><span class="lineno">  311</span> </div>
<div class="foldopen" id="foldopen00313" data-start="{" data-end="}">
<div class="line"><a id="l00313" name="l00313"></a><span class="lineno"><a class="line" href="classdrogon_1_1HttpResponse.html#a1cf39df6715c6d2340bb045cd94f76c3">  313</a></span>    std::string_view <a class="code hl_function" href="classdrogon_1_1HttpResponse.html#a1cf39df6715c6d2340bb045cd94f76c3">getBody</a>()<span class="keyword"> const</span></div>
<div class="line"><a id="l00314" name="l00314"></a><span class="lineno">  314</span><span class="keyword">    </span>{</div>
<div class="line"><a id="l00315" name="l00315"></a><span class="lineno">  315</span>        <span class="keywordflow">return</span> body();</div>
<div class="line"><a id="l00316" name="l00316"></a><span class="lineno">  316</span>    }</div>
</div>
<div class="line"><a id="l00317" name="l00317"></a><span class="lineno">  317</span> </div>
<div class="line"><a id="l00320" name="l00320"></a><span class="lineno"><a class="line" href="classdrogon_1_1HttpResponse.html#a77a3c7a91c08d0976851beb1552fde81">  320</a></span>    <span class="keyword">virtual</span> <span class="keyword">const</span> <span class="keywordtype">char</span> *<a class="code hl_function" href="classdrogon_1_1HttpResponse.html#a77a3c7a91c08d0976851beb1552fde81">versionString</a>() <span class="keyword">const</span> = 0;</div>
<div class="line"><a id="l00321" name="l00321"></a><span class="lineno">  321</span> </div>
<div class="foldopen" id="foldopen00322" data-start="{" data-end="}">
<div class="line"><a id="l00322" name="l00322"></a><span class="lineno"><a class="line" href="classdrogon_1_1HttpResponse.html#a278c40a9ac60b899e9b6217bf5a4b987">  322</a></span>    <span class="keyword">const</span> <span class="keywordtype">char</span> *<a class="code hl_function" href="classdrogon_1_1HttpResponse.html#a278c40a9ac60b899e9b6217bf5a4b987">getVersionString</a>()<span class="keyword"> const</span></div>
<div class="line"><a id="l00323" name="l00323"></a><span class="lineno">  323</span><span class="keyword">    </span>{</div>
<div class="line"><a id="l00324" name="l00324"></a><span class="lineno">  324</span>        <span class="keywordflow">return</span> versionString();</div>
<div class="line"><a id="l00325" name="l00325"></a><span class="lineno">  325</span>    }</div>
</div>
<div class="line"><a id="l00326" name="l00326"></a><span class="lineno">  326</span> </div>
<div class="line"><a id="l00328" name="l00328"></a><span class="lineno">  328</span> </div>
<div class="line"><a id="l00332" name="l00332"></a><span class="lineno"><a class="line" href="classdrogon_1_1HttpResponse.html#a99c9e306078005a68455e3157884f483">  332</a></span>    <span class="keyword">virtual</span> <a class="code hl_enumeration" href="namespacedrogon.html#ac6b3a6bb435a379d956658fa20b067c1">Version</a> <a class="code hl_function" href="classdrogon_1_1HttpResponse.html#a99c9e306078005a68455e3157884f483">version</a>() <span class="keyword">const</span> = 0;</div>
<div class="line"><a id="l00333" name="l00333"></a><span class="lineno">  333</span> </div>
<div class="foldopen" id="foldopen00335" data-start="{" data-end="}">
<div class="line"><a id="l00335" name="l00335"></a><span class="lineno"><a class="line" href="classdrogon_1_1HttpResponse.html#a046e5e829a3cbd2ef7069370911cea1e">  335</a></span>    <a class="code hl_enumeration" href="namespacedrogon.html#ac6b3a6bb435a379d956658fa20b067c1">Version</a> <a class="code hl_function" href="classdrogon_1_1HttpResponse.html#a046e5e829a3cbd2ef7069370911cea1e">getVersion</a>()<span class="keyword"> const</span></div>
<div class="line"><a id="l00336" name="l00336"></a><span class="lineno">  336</span><span class="keyword">    </span>{</div>
<div class="line"><a id="l00337" name="l00337"></a><span class="lineno">  337</span>        <span class="keywordflow">return</span> version();</div>
<div class="line"><a id="l00338" name="l00338"></a><span class="lineno">  338</span>    }</div>
</div>
<div class="line"><a id="l00339" name="l00339"></a><span class="lineno">  339</span> </div>
<div class="line"><a id="l00341" name="l00341"></a><span class="lineno"><a class="line" href="classdrogon_1_1HttpResponse.html#a03bdeb98dfb26835960b744511408794">  341</a></span>    <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code hl_function" href="classdrogon_1_1HttpResponse.html#a03bdeb98dfb26835960b744511408794">clear</a>() = 0;</div>
<div class="line"><a id="l00342" name="l00342"></a><span class="lineno">  342</span> </div>
<div class="line"><a id="l00346" name="l00346"></a><span class="lineno"><a class="line" href="classdrogon_1_1HttpResponse.html#a975259181a13f0ab238ef5325caf8b8b">  346</a></span>    <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code hl_function" href="classdrogon_1_1HttpResponse.html#a975259181a13f0ab238ef5325caf8b8b">setExpiredTime</a>(ssize_t expiredTime) = 0;</div>
<div class="line"><a id="l00347" name="l00347"></a><span class="lineno">  347</span> </div>
<div class="line"><a id="l00349" name="l00349"></a><span class="lineno"><a class="line" href="classdrogon_1_1HttpResponse.html#a6bbaaa5b26a83176827ce4a9d2792da2">  349</a></span>    <span class="keyword">virtual</span> ssize_t <a class="code hl_function" href="classdrogon_1_1HttpResponse.html#a6bbaaa5b26a83176827ce4a9d2792da2">expiredTime</a>() <span class="keyword">const</span> = 0;</div>
<div class="line"><a id="l00350" name="l00350"></a><span class="lineno">  350</span> </div>
<div class="foldopen" id="foldopen00351" data-start="{" data-end="}">
<div class="line"><a id="l00351" name="l00351"></a><span class="lineno"><a class="line" href="classdrogon_1_1HttpResponse.html#a58081265552934448a6c40e521607985">  351</a></span>    ssize_t <a class="code hl_function" href="classdrogon_1_1HttpResponse.html#a58081265552934448a6c40e521607985">getExpiredTime</a>()<span class="keyword"> const</span></div>
<div class="line"><a id="l00352" name="l00352"></a><span class="lineno">  352</span><span class="keyword">    </span>{</div>
<div class="line"><a id="l00353" name="l00353"></a><span class="lineno">  353</span>        <span class="keywordflow">return</span> expiredTime();</div>
<div class="line"><a id="l00354" name="l00354"></a><span class="lineno">  354</span>    }</div>
</div>
<div class="line"><a id="l00355" name="l00355"></a><span class="lineno">  355</span> </div>
<div class="line"><a id="l00359" name="l00359"></a><span class="lineno"><a class="line" href="classdrogon_1_1HttpResponse.html#a57e800f8ad97516cb4738333b7afcba3">  359</a></span>    <span class="keyword">virtual</span> <span class="keyword">const</span> std::shared_ptr&lt;Json::Value&gt; &amp;<a class="code hl_function" href="classdrogon_1_1HttpResponse.html#a57e800f8ad97516cb4738333b7afcba3">jsonObject</a>() <span class="keyword">const</span> = 0;</div>
<div class="line"><a id="l00360" name="l00360"></a><span class="lineno">  360</span> </div>
<div class="foldopen" id="foldopen00361" data-start="{" data-end="}">
<div class="line"><a id="l00361" name="l00361"></a><span class="lineno"><a class="line" href="classdrogon_1_1HttpResponse.html#a4a499e596719ced362e9eeae50de93c9">  361</a></span>    <span class="keyword">const</span> std::shared_ptr&lt;Json::Value&gt; &amp;<a class="code hl_function" href="classdrogon_1_1HttpResponse.html#a4a499e596719ced362e9eeae50de93c9">getJsonObject</a>()<span class="keyword"> const</span></div>
<div class="line"><a id="l00362" name="l00362"></a><span class="lineno">  362</span><span class="keyword">    </span>{</div>
<div class="line"><a id="l00363" name="l00363"></a><span class="lineno">  363</span>        <span class="keywordflow">return</span> jsonObject();</div>
<div class="line"><a id="l00364" name="l00364"></a><span class="lineno">  364</span>    }</div>
</div>
<div class="line"><a id="l00365" name="l00365"></a><span class="lineno">  365</span> </div>
<div class="line"><a id="l00374" name="l00374"></a><span class="lineno"><a class="line" href="classdrogon_1_1HttpResponse.html#afdaff2509394ba08e58584aa7209e625">  374</a></span>    <span class="keyword">virtual</span> <span class="keyword">const</span> std::string &amp;<a class="code hl_function" href="classdrogon_1_1HttpResponse.html#afdaff2509394ba08e58584aa7209e625">getJsonError</a>() <span class="keyword">const</span> = 0;</div>
<div class="line"><a id="l00375" name="l00375"></a><span class="lineno">  375</span> </div>
<div class="line"><a id="l00385" name="l00385"></a><span class="lineno"><a class="line" href="classdrogon_1_1HttpResponse.html#aec5f18f112c1a8ffd253cf31c2c84fd4">  385</a></span>    <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code hl_function" href="classdrogon_1_1HttpResponse.html#aec5f18f112c1a8ffd253cf31c2c84fd4">setPassThrough</a>(<span class="keywordtype">bool</span> flag) = 0;</div>
<div class="line"><a id="l00386" name="l00386"></a><span class="lineno">  386</span> </div>
<div class="line"><a id="l00391" name="l00391"></a><span class="lineno"><a class="line" href="classdrogon_1_1HttpResponse.html#ae00c3140bb4759feaea8fc7f7e82e940">  391</a></span>    <span class="keyword">virtual</span> <span class="keyword">const</span> trantor::CertificatePtr &amp;<a class="code hl_function" href="classdrogon_1_1HttpResponse.html#ae00c3140bb4759feaea8fc7f7e82e940">peerCertificate</a>() <span class="keyword">const</span> = 0;</div>
<div class="line"><a id="l00392" name="l00392"></a><span class="lineno">  392</span> </div>
<div class="foldopen" id="foldopen00393" data-start="{" data-end="}">
<div class="line"><a id="l00393" name="l00393"></a><span class="lineno"><a class="line" href="classdrogon_1_1HttpResponse.html#a1fbbcf3c1f7c799693bfeadf0d9f5adb">  393</a></span>    <span class="keyword">const</span> trantor::CertificatePtr &amp;<a class="code hl_function" href="classdrogon_1_1HttpResponse.html#a1fbbcf3c1f7c799693bfeadf0d9f5adb">getPeerCertificate</a>()<span class="keyword"> const</span></div>
<div class="line"><a id="l00394" name="l00394"></a><span class="lineno">  394</span><span class="keyword">    </span>{</div>
<div class="line"><a id="l00395" name="l00395"></a><span class="lineno">  395</span>        <span class="keywordflow">return</span> peerCertificate();</div>
<div class="line"><a id="l00396" name="l00396"></a><span class="lineno">  396</span>    }</div>
</div>
<div class="line"><a id="l00397" name="l00397"></a><span class="lineno">  397</span> </div>
<div class="line"><a id="l00398" name="l00398"></a><span class="lineno">  398</span>    <span class="comment">/* The following methods are a series of factory methods that help users</span></div>
<div class="line"><a id="l00399" name="l00399"></a><span class="lineno">  399</span><span class="comment">     * create response objects. */</span></div>
<div class="line"><a id="l00400" name="l00400"></a><span class="lineno">  400</span> </div>
<div class="line"><a id="l00403" name="l00403"></a><span class="lineno"><a class="line" href="classdrogon_1_1HttpResponse.html#a76e9f38d3cf0b6b69d23d1f53ce5afbe">  403</a></span>    <span class="keyword">static</span> <a class="code hl_typedef" href="namespacedrogon.html#ab2a2d829bb017f43c2c9de72f4042baa">HttpResponsePtr</a> <a class="code hl_function" href="classdrogon_1_1HttpResponse.html#a76e9f38d3cf0b6b69d23d1f53ce5afbe">newHttpResponse</a>();</div>
<div class="line"><a id="l00405" name="l00405"></a><span class="lineno"><a class="line" href="classdrogon_1_1HttpResponse.html#aa409a489a6bb1b7b9a4fd01aee2ed3d7">  405</a></span>    <span class="keyword">static</span> <a class="code hl_typedef" href="namespacedrogon.html#ab2a2d829bb017f43c2c9de72f4042baa">HttpResponsePtr</a> <a class="code hl_function" href="classdrogon_1_1HttpResponse.html#aa409a489a6bb1b7b9a4fd01aee2ed3d7">newHttpResponse</a>(<a class="code hl_enumeration" href="namespacedrogon.html#ad6cc6b2c3917537432fcde077e02cf2f">HttpStatusCode</a> code,</div>
<div class="line"><a id="l00406" name="l00406"></a><span class="lineno">  406</span>                                           <a class="code hl_enumeration" href="namespacedrogon.html#a2037a41934aeea1598d7468b4b8cb823">ContentType</a> type);</div>
<div class="line"><a id="l00408" name="l00408"></a><span class="lineno"><a class="line" href="classdrogon_1_1HttpResponse.html#ae7dbe82af88eae091b7684edb67d5f99">  408</a></span>    <span class="keyword">static</span> <a class="code hl_typedef" href="namespacedrogon.html#ab2a2d829bb017f43c2c9de72f4042baa">HttpResponsePtr</a> <a class="code hl_function" href="classdrogon_1_1HttpResponse.html#ae7dbe82af88eae091b7684edb67d5f99">newNotFoundResponse</a>(</div>
<div class="line"><a id="l00409" name="l00409"></a><span class="lineno">  409</span>        <span class="keyword">const</span> <a class="code hl_typedef" href="namespacedrogon.html#a5200699555f98a809538342baa167aad">HttpRequestPtr</a> &amp;req = <a class="code hl_typedef" href="namespacedrogon.html#a5200699555f98a809538342baa167aad">HttpRequestPtr</a>());</div>
<div class="line"><a id="l00412" name="l00412"></a><span class="lineno"><a class="line" href="classdrogon_1_1HttpResponse.html#a82c46a1155b1ff1494f5995b241b4034">  412</a></span>    <span class="keyword">static</span> <a class="code hl_typedef" href="namespacedrogon.html#ab2a2d829bb017f43c2c9de72f4042baa">HttpResponsePtr</a> <a class="code hl_function" href="classdrogon_1_1HttpResponse.html#a82c46a1155b1ff1494f5995b241b4034">newHttpJsonResponse</a>(<span class="keyword">const</span> Json::Value &amp;data);</div>
<div class="line"><a id="l00415" name="l00415"></a><span class="lineno"><a class="line" href="classdrogon_1_1HttpResponse.html#ab2bd4aa9c3b2caa800534f3013b491e8">  415</a></span>    <span class="keyword">static</span> <a class="code hl_typedef" href="namespacedrogon.html#ab2a2d829bb017f43c2c9de72f4042baa">HttpResponsePtr</a> <a class="code hl_function" href="classdrogon_1_1HttpResponse.html#ab2bd4aa9c3b2caa800534f3013b491e8">newHttpJsonResponse</a>(Json::Value &amp;&amp;data);</div>
<div class="line"><a id="l00418" name="l00418"></a><span class="lineno">  418</span> </div>
<div class="line"><a id="l00423" name="l00423"></a><span class="lineno"><a class="line" href="classdrogon_1_1HttpResponse.html#a7001b5fa3cf32b1401c01e65fcafa4d7">  423</a></span>    <span class="keyword">static</span> <a class="code hl_typedef" href="namespacedrogon.html#ab2a2d829bb017f43c2c9de72f4042baa">HttpResponsePtr</a> <a class="code hl_function" href="classdrogon_1_1HttpResponse.html#a7001b5fa3cf32b1401c01e65fcafa4d7">newHttpViewResponse</a>(</div>
<div class="line"><a id="l00424" name="l00424"></a><span class="lineno">  424</span>        <span class="keyword">const</span> std::string &amp;viewName,</div>
<div class="line"><a id="l00425" name="l00425"></a><span class="lineno">  425</span>        <span class="keyword">const</span> <a class="code hl_class" href="classdrogon_1_1HttpViewData.html">HttpViewData</a> &amp;data = <a class="code hl_class" href="classdrogon_1_1HttpViewData.html">HttpViewData</a>(),</div>
<div class="line"><a id="l00426" name="l00426"></a><span class="lineno">  426</span>        <span class="keyword">const</span> <a class="code hl_typedef" href="namespacedrogon.html#a5200699555f98a809538342baa167aad">HttpRequestPtr</a> &amp;req = <a class="code hl_typedef" href="namespacedrogon.html#a5200699555f98a809538342baa167aad">HttpRequestPtr</a>());</div>
<div class="line"><a id="l00427" name="l00427"></a><span class="lineno">  427</span> </div>
<div class="line"><a id="l00430" name="l00430"></a><span class="lineno">  430</span> </div>
<div class="line"><a id="l00435" name="l00435"></a><span class="lineno"><a class="line" href="classdrogon_1_1HttpResponse.html#a953a8ca52e9f14b44f076f576c86dbd6">  435</a></span>    <span class="keyword">static</span> <a class="code hl_typedef" href="namespacedrogon.html#ab2a2d829bb017f43c2c9de72f4042baa">HttpResponsePtr</a> <a class="code hl_function" href="classdrogon_1_1HttpResponse.html#a953a8ca52e9f14b44f076f576c86dbd6">newRedirectionResponse</a>(</div>
<div class="line"><a id="l00436" name="l00436"></a><span class="lineno">  436</span>        <span class="keyword">const</span> std::string &amp;location,</div>
<div class="line"><a id="l00437" name="l00437"></a><span class="lineno">  437</span>        <a class="code hl_enumeration" href="namespacedrogon.html#ad6cc6b2c3917537432fcde077e02cf2f">HttpStatusCode</a> status = k302Found);</div>
<div class="line"><a id="l00438" name="l00438"></a><span class="lineno">  438</span> </div>
<div class="line"><a id="l00440" name="l00440"></a><span class="lineno">  440</span> </div>
<div class="line"><a id="l00449" name="l00449"></a><span class="lineno"><a class="line" href="classdrogon_1_1HttpResponse.html#a8800fe9bd787342db3b231d6996a8cfe">  449</a></span>    <span class="keyword">static</span> <a class="code hl_typedef" href="namespacedrogon.html#ab2a2d829bb017f43c2c9de72f4042baa">HttpResponsePtr</a> <a class="code hl_function" href="classdrogon_1_1HttpResponse.html#a8800fe9bd787342db3b231d6996a8cfe">newFileResponse</a>(</div>
<div class="line"><a id="l00450" name="l00450"></a><span class="lineno">  450</span>        <span class="keyword">const</span> std::string &amp;fullPath,</div>
<div class="line"><a id="l00451" name="l00451"></a><span class="lineno">  451</span>        <span class="keyword">const</span> std::string &amp;attachmentFileName = <span class="stringliteral">&quot;&quot;</span>,</div>
<div class="line"><a id="l00452" name="l00452"></a><span class="lineno">  452</span>        <a class="code hl_enumeration" href="namespacedrogon.html#a2037a41934aeea1598d7468b4b8cb823">ContentType</a> type = CT_NONE,</div>
<div class="line"><a id="l00453" name="l00453"></a><span class="lineno">  453</span>        <span class="keyword">const</span> std::string &amp;typeString = <span class="stringliteral">&quot;&quot;</span>,</div>
<div class="line"><a id="l00454" name="l00454"></a><span class="lineno">  454</span>        <span class="keyword">const</span> <a class="code hl_typedef" href="namespacedrogon.html#a5200699555f98a809538342baa167aad">HttpRequestPtr</a> &amp;req = <a class="code hl_typedef" href="namespacedrogon.html#a5200699555f98a809538342baa167aad">HttpRequestPtr</a>());</div>
<div class="line"><a id="l00455" name="l00455"></a><span class="lineno">  455</span> </div>
<div class="line"><a id="l00457" name="l00457"></a><span class="lineno">  457</span> </div>
<div class="line"><a id="l00473" name="l00473"></a><span class="lineno"><a class="line" href="classdrogon_1_1HttpResponse.html#a83447cc5e0ef7135146f1ce5059d39b8">  473</a></span>    <span class="keyword">static</span> <a class="code hl_typedef" href="namespacedrogon.html#ab2a2d829bb017f43c2c9de72f4042baa">HttpResponsePtr</a> <a class="code hl_function" href="classdrogon_1_1HttpResponse.html#a83447cc5e0ef7135146f1ce5059d39b8">newFileResponse</a>(</div>
<div class="line"><a id="l00474" name="l00474"></a><span class="lineno">  474</span>        <span class="keyword">const</span> std::string &amp;fullPath,</div>
<div class="line"><a id="l00475" name="l00475"></a><span class="lineno">  475</span>        <span class="keywordtype">size_t</span> offset,</div>
<div class="line"><a id="l00476" name="l00476"></a><span class="lineno">  476</span>        <span class="keywordtype">size_t</span> length,</div>
<div class="line"><a id="l00477" name="l00477"></a><span class="lineno">  477</span>        <span class="keywordtype">bool</span> setContentRange = <span class="keyword">true</span>,</div>
<div class="line"><a id="l00478" name="l00478"></a><span class="lineno">  478</span>        <span class="keyword">const</span> std::string &amp;attachmentFileName = <span class="stringliteral">&quot;&quot;</span>,</div>
<div class="line"><a id="l00479" name="l00479"></a><span class="lineno">  479</span>        <a class="code hl_enumeration" href="namespacedrogon.html#a2037a41934aeea1598d7468b4b8cb823">ContentType</a> type = CT_NONE,</div>
<div class="line"><a id="l00480" name="l00480"></a><span class="lineno">  480</span>        <span class="keyword">const</span> std::string &amp;typeString = <span class="stringliteral">&quot;&quot;</span>,</div>
<div class="line"><a id="l00481" name="l00481"></a><span class="lineno">  481</span>        <span class="keyword">const</span> <a class="code hl_typedef" href="namespacedrogon.html#a5200699555f98a809538342baa167aad">HttpRequestPtr</a> &amp;req = <a class="code hl_typedef" href="namespacedrogon.html#a5200699555f98a809538342baa167aad">HttpRequestPtr</a>());</div>
<div class="line"><a id="l00482" name="l00482"></a><span class="lineno">  482</span> </div>
<div class="line"><a id="l00485" name="l00485"></a><span class="lineno">  485</span> </div>
<div class="line"><a id="l00495" name="l00495"></a><span class="lineno"><a class="line" href="classdrogon_1_1HttpResponse.html#ad4c84b9f7260314d84235cf311f5e39e">  495</a></span>    <span class="keyword">static</span> <a class="code hl_typedef" href="namespacedrogon.html#ab2a2d829bb017f43c2c9de72f4042baa">HttpResponsePtr</a> <a class="code hl_function" href="classdrogon_1_1HttpResponse.html#ad4c84b9f7260314d84235cf311f5e39e">newFileResponse</a>(</div>
<div class="line"><a id="l00496" name="l00496"></a><span class="lineno">  496</span>        <span class="keyword">const</span> <span class="keywordtype">unsigned</span> <span class="keywordtype">char</span> *pBuffer,</div>
<div class="line"><a id="l00497" name="l00497"></a><span class="lineno">  497</span>        <span class="keywordtype">size_t</span> bufferLength,</div>
<div class="line"><a id="l00498" name="l00498"></a><span class="lineno">  498</span>        <span class="keyword">const</span> std::string &amp;attachmentFileName = <span class="stringliteral">&quot;&quot;</span>,</div>
<div class="line"><a id="l00499" name="l00499"></a><span class="lineno">  499</span>        <a class="code hl_enumeration" href="namespacedrogon.html#a2037a41934aeea1598d7468b4b8cb823">ContentType</a> type = CT_NONE,</div>
<div class="line"><a id="l00500" name="l00500"></a><span class="lineno">  500</span>        <span class="keyword">const</span> std::string &amp;typeString = <span class="stringliteral">&quot;&quot;</span>);</div>
<div class="line"><a id="l00501" name="l00501"></a><span class="lineno">  501</span> </div>
<div class="line"><a id="l00504" name="l00504"></a><span class="lineno">  504</span> </div>
<div class="line"><a id="l00520" name="l00520"></a><span class="lineno"><a class="line" href="classdrogon_1_1HttpResponse.html#a83349a48d7e179abaace8d16d020cef4">  520</a></span>    <span class="keyword">static</span> <a class="code hl_typedef" href="namespacedrogon.html#ab2a2d829bb017f43c2c9de72f4042baa">HttpResponsePtr</a> <a class="code hl_function" href="classdrogon_1_1HttpResponse.html#a83349a48d7e179abaace8d16d020cef4">newStreamResponse</a>(</div>
<div class="line"><a id="l00521" name="l00521"></a><span class="lineno">  521</span>        <span class="keyword">const</span> std::function&lt;std::size_t(<span class="keywordtype">char</span> *, std::size_t)&gt; &amp;callback,</div>
<div class="line"><a id="l00522" name="l00522"></a><span class="lineno">  522</span>        <span class="keyword">const</span> std::string &amp;attachmentFileName = <span class="stringliteral">&quot;&quot;</span>,</div>
<div class="line"><a id="l00523" name="l00523"></a><span class="lineno">  523</span>        <a class="code hl_enumeration" href="namespacedrogon.html#a2037a41934aeea1598d7468b4b8cb823">ContentType</a> type = CT_NONE,</div>
<div class="line"><a id="l00524" name="l00524"></a><span class="lineno">  524</span>        <span class="keyword">const</span> std::string &amp;typeString = <span class="stringliteral">&quot;&quot;</span>,</div>
<div class="line"><a id="l00525" name="l00525"></a><span class="lineno">  525</span>        <span class="keyword">const</span> <a class="code hl_typedef" href="namespacedrogon.html#a5200699555f98a809538342baa167aad">HttpRequestPtr</a> &amp;req = <a class="code hl_typedef" href="namespacedrogon.html#a5200699555f98a809538342baa167aad">HttpRequestPtr</a>());</div>
<div class="line"><a id="l00526" name="l00526"></a><span class="lineno">  526</span> </div>
<div class="line"><a id="l00529" name="l00529"></a><span class="lineno">  529</span> </div>
<div class="line"><a id="l00541" name="l00541"></a><span class="lineno"><a class="line" href="classdrogon_1_1HttpResponse.html#aca2d38ae5fd48790b299933559f6e537">  541</a></span>    <span class="keyword">static</span> <a class="code hl_typedef" href="namespacedrogon.html#ab2a2d829bb017f43c2c9de72f4042baa">HttpResponsePtr</a> <a class="code hl_function" href="classdrogon_1_1HttpResponse.html#aca2d38ae5fd48790b299933559f6e537">newAsyncStreamResponse</a>(</div>
<div class="line"><a id="l00542" name="l00542"></a><span class="lineno">  542</span>        <span class="keyword">const</span> std::function&lt;<span class="keywordtype">void</span>(<a class="code hl_typedef" href="namespacedrogon.html#ac29de97af31aae6951b30d7ef8749fd9">ResponseStreamPtr</a>)&gt; &amp;callback,</div>
<div class="line"><a id="l00543" name="l00543"></a><span class="lineno">  543</span>        <span class="keywordtype">bool</span> disableKickoffTimeout = <span class="keyword">false</span>);</div>
<div class="line"><a id="l00544" name="l00544"></a><span class="lineno">  544</span> </div>
<div class="line"><a id="l00549" name="l00549"></a><span class="lineno">  549</span>    <span class="keyword">template</span> &lt;<span class="keyword">typename</span> T&gt;</div>
<div class="foldopen" id="foldopen00550" data-start="{" data-end="}">
<div class="line"><a id="l00550" name="l00550"></a><span class="lineno"><a class="line" href="classdrogon_1_1HttpResponse.html#a40d143dcb8508d7618ee0f0d7c19ef23">  550</a></span>    <span class="keyword">static</span> <a class="code hl_typedef" href="namespacedrogon.html#ab2a2d829bb017f43c2c9de72f4042baa">HttpResponsePtr</a> <a class="code hl_function" href="classdrogon_1_1HttpResponse.html#a40d143dcb8508d7618ee0f0d7c19ef23">newCustomHttpResponse</a>(T &amp;&amp;obj)</div>
<div class="line"><a id="l00551" name="l00551"></a><span class="lineno">  551</span>    {</div>
<div class="line"><a id="l00552" name="l00552"></a><span class="lineno">  552</span>        <span class="keywordflow">return</span> <a class="code hl_function" href="namespacedrogon.html#afecc08ebc1de21d190ebb12b715b19f9">toResponse</a>(std::forward&lt;T&gt;(obj));</div>
<div class="line"><a id="l00553" name="l00553"></a><span class="lineno">  553</span>    }</div>
</div>
<div class="line"><a id="l00554" name="l00554"></a><span class="lineno">  554</span> </div>
<div class="line"><a id="l00560" name="l00560"></a><span class="lineno"><a class="line" href="classdrogon_1_1HttpResponse.html#a8d1bc11f80d93ad6a8ee7fb64e51dde0">  560</a></span>    <span class="keyword">virtual</span> <span class="keyword">const</span> std::string &amp;<a class="code hl_function" href="classdrogon_1_1HttpResponse.html#a8d1bc11f80d93ad6a8ee7fb64e51dde0">sendfileName</a>() <span class="keyword">const</span> = 0;</div>
<div class="line"><a id="l00561" name="l00561"></a><span class="lineno">  561</span> </div>
<div class="line"><a id="l00567" name="l00567"></a><span class="lineno"><a class="line" href="classdrogon_1_1HttpResponse.html#a44ad31ad5d49291836b96434b5e7fc4a">  567</a></span>    <span class="keyword">using </span><a class="code hl_typedef" href="classdrogon_1_1HttpResponse.html#a44ad31ad5d49291836b96434b5e7fc4a">SendfileRange</a> = std::pair&lt;size_t, size_t&gt;;  <span class="comment">// { offset, length }</span></div>
<div class="line"><a id="l00568" name="l00568"></a><span class="lineno"><a class="line" href="classdrogon_1_1HttpResponse.html#a259114437157085d2f3dda48a181e264">  568</a></span>    <span class="keyword">virtual</span> <span class="keyword">const</span> <a class="code hl_typedef" href="classdrogon_1_1HttpResponse.html#a44ad31ad5d49291836b96434b5e7fc4a">SendfileRange</a> &amp;<a class="code hl_function" href="classdrogon_1_1HttpResponse.html#a259114437157085d2f3dda48a181e264">sendfileRange</a>() <span class="keyword">const</span> = 0;</div>
<div class="line"><a id="l00569" name="l00569"></a><span class="lineno">  569</span> </div>
<div class="line"><a id="l00575" name="l00575"></a><span class="lineno">  575</span>    <span class="keyword">virtual</span> <span class="keyword">const</span> std::function&lt;std::size_t(<span class="keywordtype">char</span> *, std::size_t)&gt; &amp;</div>
<div class="line"><a id="l00576" name="l00576"></a><span class="lineno"><a class="line" href="classdrogon_1_1HttpResponse.html#af345a0cc25536620c01dafcc04667bfa">  576</a></span>    <a class="code hl_function" href="classdrogon_1_1HttpResponse.html#af345a0cc25536620c01dafcc04667bfa">streamCallback</a>() <span class="keyword">const</span> = 0;</div>
<div class="line"><a id="l00577" name="l00577"></a><span class="lineno">  577</span> </div>
<div class="line"><a id="l00582" name="l00582"></a><span class="lineno"><a class="line" href="classdrogon_1_1HttpResponse.html#ad5832929b4c9e740ac49e57af205b8d8">  582</a></span>    <span class="keyword">virtual</span> <span class="keyword">const</span> std::function&lt;void(<a class="code hl_typedef" href="namespacedrogon.html#ac29de97af31aae6951b30d7ef8749fd9">ResponseStreamPtr</a>)&gt; &amp;<a class="code hl_function" href="classdrogon_1_1HttpResponse.html#ad5832929b4c9e740ac49e57af205b8d8">asyncStreamCallback</a>()</div>
<div class="line"><a id="l00583" name="l00583"></a><span class="lineno">  583</span>        <span class="keyword">const</span> = 0;</div>
<div class="line"><a id="l00584" name="l00584"></a><span class="lineno">  584</span> </div>
<div class="line"><a id="l00588" name="l00588"></a><span class="lineno"><a class="line" href="classdrogon_1_1HttpResponse.html#aed36ab5336669f7db117913c8d028b2a">  588</a></span>    <span class="keyword">virtual</span> std::string <a class="code hl_function" href="classdrogon_1_1HttpResponse.html#aed36ab5336669f7db117913c8d028b2a">contentTypeString</a>() <span class="keyword">const</span> = 0;</div>
<div class="line"><a id="l00589" name="l00589"></a><span class="lineno">  589</span> </div>
<div class="foldopen" id="foldopen00590" data-start="{" data-end="}">
<div class="line"><a id="l00590" name="l00590"></a><span class="lineno"><a class="line" href="classdrogon_1_1HttpResponse.html#a4e18484f63f6da85c403a44605de5ee8">  590</a></span>    <span class="keyword">virtual</span> <a class="code hl_function" href="classdrogon_1_1HttpResponse.html#a4e18484f63f6da85c403a44605de5ee8">~HttpResponse</a>()</div>
<div class="line"><a id="l00591" name="l00591"></a><span class="lineno">  591</span>    {</div>
<div class="line"><a id="l00592" name="l00592"></a><span class="lineno">  592</span>    }</div>
</div>
<div class="line"><a id="l00593" name="l00593"></a><span class="lineno">  593</span> </div>
<div class="line"><a id="l00594" name="l00594"></a><span class="lineno">  594</span>  <span class="keyword">private</span>:</div>
<div class="line"><a id="l00595" name="l00595"></a><span class="lineno">  595</span>    <span class="keyword">virtual</span> <span class="keywordtype">void</span> setBody(<span class="keyword">const</span> <span class="keywordtype">char</span> *body, <span class="keywordtype">size_t</span> len) = 0;</div>
<div class="line"><a id="l00596" name="l00596"></a><span class="lineno">  596</span>    <span class="keyword">virtual</span> <span class="keyword">const</span> <span class="keywordtype">char</span> *getBodyData() <span class="keyword">const</span> = 0;</div>
<div class="line"><a id="l00597" name="l00597"></a><span class="lineno">  597</span>    <span class="keyword">virtual</span> <span class="keywordtype">size_t</span> getBodyLength() <span class="keyword">const</span> = 0;</div>
<div class="line"><a id="l00598" name="l00598"></a><span class="lineno">  598</span>    <span class="keyword">virtual</span> <span class="keywordtype">void</span> setContentTypeCodeAndCustomString(<a class="code hl_enumeration" href="namespacedrogon.html#a2037a41934aeea1598d7468b4b8cb823">ContentType</a> type,</div>
<div class="line"><a id="l00599" name="l00599"></a><span class="lineno">  599</span>                                                   <span class="keyword">const</span> <span class="keywordtype">char</span> *typeString,</div>
<div class="line"><a id="l00600" name="l00600"></a><span class="lineno">  600</span>                                                   <span class="keywordtype">size_t</span> typeStringLength) = 0;</div>
<div class="line"><a id="l00601" name="l00601"></a><span class="lineno">  601</span>    <span class="keyword">virtual</span> <span class="keywordtype">void</span> setContentTypeString(<span class="keyword">const</span> <span class="keywordtype">char</span> *typeString,</div>
<div class="line"><a id="l00602" name="l00602"></a><span class="lineno">  602</span>                                      <span class="keywordtype">size_t</span> typeStringLength) = 0;</div>
<div class="line"><a id="l00603" name="l00603"></a><span class="lineno">  603</span>    <span class="keyword">virtual</span> <span class="keywordtype">void</span> setCustomStatusCode(<span class="keywordtype">int</span> code,</div>
<div class="line"><a id="l00604" name="l00604"></a><span class="lineno">  604</span>                                     <span class="keyword">const</span> <span class="keywordtype">char</span> *message,</div>
<div class="line"><a id="l00605" name="l00605"></a><span class="lineno">  605</span>                                     <span class="keywordtype">size_t</span> messageLength) = 0;</div>
<div class="line"><a id="l00606" name="l00606"></a><span class="lineno">  606</span>};</div>
</div>
<div class="line"><a id="l00607" name="l00607"></a><span class="lineno">  607</span> </div>
<div class="line"><a id="l00608" name="l00608"></a><span class="lineno">  608</span><span class="keyword">template</span> &lt;&gt;</div>
<div class="foldopen" id="foldopen00609" data-start="{" data-end="}">
<div class="line"><a id="l00609" name="l00609"></a><span class="lineno"><a class="line" href="namespacedrogon.html#a356eb07dafe947bcd57e42b0f0316489">  609</a></span><span class="keyword">inline</span> <a class="code hl_typedef" href="namespacedrogon.html#ab2a2d829bb017f43c2c9de72f4042baa">HttpResponsePtr</a> <a class="code hl_function" href="namespacedrogon.html#a356eb07dafe947bcd57e42b0f0316489">toResponse&lt;const Json::Value &amp;&gt;</a>(<span class="keyword">const</span> Json::Value &amp;pJson)</div>
<div class="line"><a id="l00610" name="l00610"></a><span class="lineno">  610</span>{</div>
<div class="line"><a id="l00611" name="l00611"></a><span class="lineno">  611</span>    <span class="keywordflow">return</span> <a class="code hl_function" href="classdrogon_1_1HttpResponse.html#a82c46a1155b1ff1494f5995b241b4034">HttpResponse::newHttpJsonResponse</a>(pJson);</div>
<div class="line"><a id="l00612" name="l00612"></a><span class="lineno">  612</span>}</div>
</div>
<div class="line"><a id="l00613" name="l00613"></a><span class="lineno">  613</span> </div>
<div class="line"><a id="l00614" name="l00614"></a><span class="lineno">  614</span><span class="keyword">template</span> &lt;&gt;</div>
<div class="foldopen" id="foldopen00615" data-start="{" data-end="}">
<div class="line"><a id="l00615" name="l00615"></a><span class="lineno"><a class="line" href="namespacedrogon.html#a9bf8ca25a3308a866cdd8b6e1b142a98">  615</a></span><span class="keyword">inline</span> <a class="code hl_typedef" href="namespacedrogon.html#ab2a2d829bb017f43c2c9de72f4042baa">HttpResponsePtr</a> <a class="code hl_function" href="namespacedrogon.html#afecc08ebc1de21d190ebb12b715b19f9">toResponse</a>(Json::Value &amp;&amp;pJson)</div>
<div class="line"><a id="l00616" name="l00616"></a><span class="lineno">  616</span>{</div>
<div class="line"><a id="l00617" name="l00617"></a><span class="lineno">  617</span>    <span class="keywordflow">return</span> <a class="code hl_function" href="classdrogon_1_1HttpResponse.html#a82c46a1155b1ff1494f5995b241b4034">HttpResponse::newHttpJsonResponse</a>(std::move(pJson));</div>
<div class="line"><a id="l00618" name="l00618"></a><span class="lineno">  618</span>}</div>
</div>
<div class="line"><a id="l00619" name="l00619"></a><span class="lineno">  619</span> </div>
<div class="line"><a id="l00620" name="l00620"></a><span class="lineno">  620</span><span class="keyword">template</span> &lt;&gt;</div>
<div class="foldopen" id="foldopen00621" data-start="{" data-end="}">
<div class="line"><a id="l00621" name="l00621"></a><span class="lineno"><a class="line" href="namespacedrogon.html#a693e1b31bb04dba5fa12890051d7fd6a">  621</a></span><span class="keyword">inline</span> std::shared_ptr&lt;Json::Value&gt; <a class="code hl_function" href="namespacedrogon.html#a938517a807e39a9078d7b76c4ea95306">fromResponse</a>(<span class="keyword">const</span> <a class="code hl_class" href="classdrogon_1_1HttpResponse.html">HttpResponse</a> &amp;resp)</div>
<div class="line"><a id="l00622" name="l00622"></a><span class="lineno">  622</span>{</div>
<div class="line"><a id="l00623" name="l00623"></a><span class="lineno">  623</span>    <span class="keywordflow">return</span> resp.<a class="code hl_function" href="classdrogon_1_1HttpResponse.html#a4a499e596719ced362e9eeae50de93c9">getJsonObject</a>();</div>
<div class="line"><a id="l00624" name="l00624"></a><span class="lineno">  624</span>}</div>
</div>
<div class="line"><a id="l00625" name="l00625"></a><span class="lineno">  625</span>}  <span class="comment">// namespace drogon</span></div>
<div class="ttc" id="aCookie_8h_html"><div class="ttname"><a href="Cookie_8h.html">Cookie.h</a></div></div>
<div class="ttc" id="aDrClassMap_8h_html"><div class="ttname"><a href="DrClassMap_8h.html">DrClassMap.h</a></div></div>
<div class="ttc" id="aHttpRequest_8h_html"><div class="ttname"><a href="HttpRequest_8h.html">HttpRequest.h</a></div></div>
<div class="ttc" id="aHttpTypes_8h_html"><div class="ttname"><a href="HttpTypes_8h.html">HttpTypes.h</a></div></div>
<div class="ttc" id="aHttpViewData_8h_html"><div class="ttname"><a href="HttpViewData_8h.html">HttpViewData.h</a></div></div>
<div class="ttc" id="aclassdrogon_1_1Cookie_html"><div class="ttname"><a href="classdrogon_1_1Cookie.html">drogon::Cookie</a></div><div class="ttdoc">this class represents a cookie entity.</div><div class="ttdef"><b>Definition</b> Cookie.h:32</div></div>
<div class="ttc" id="aclassdrogon_1_1DrClassMap_html_a3479980ccf7edf6b886a02a29af181e4"><div class="ttname"><a href="classdrogon_1_1DrClassMap.html#a3479980ccf7edf6b886a02a29af181e4">drogon::DrClassMap::demangle</a></div><div class="ttdeci">static std::string demangle(const char *mangled_name)</div><div class="ttdoc">demangle the type name which is returned by typeid(T).name().</div><div class="ttdef"><b>Definition</b> DrClassMap.h:116</div></div>
<div class="ttc" id="aclassdrogon_1_1HttpResponse_html"><div class="ttname"><a href="classdrogon_1_1HttpResponse.html">drogon::HttpResponse</a></div><div class="ttdef"><b>Definition</b> HttpResponse.h:117</div></div>
<div class="ttc" id="aclassdrogon_1_1HttpResponse_html_a015c77c0a7a47f0e37347038ce4de81a"><div class="ttname"><a href="classdrogon_1_1HttpResponse.html#a015c77c0a7a47f0e37347038ce4de81a">drogon::HttpResponse::setBody</a></div><div class="ttdeci">virtual void setBody(std::string &amp;&amp;body)=0</div><div class="ttdoc">Set the response body(content).</div></div>
<div class="ttc" id="aclassdrogon_1_1HttpResponse_html_a03bdeb98dfb26835960b744511408794"><div class="ttname"><a href="classdrogon_1_1HttpResponse.html#a03bdeb98dfb26835960b744511408794">drogon::HttpResponse::clear</a></div><div class="ttdeci">virtual void clear()=0</div><div class="ttdoc">Reset the response object to its initial state</div></div>
<div class="ttc" id="aclassdrogon_1_1HttpResponse_html_a046e5e829a3cbd2ef7069370911cea1e"><div class="ttname"><a href="classdrogon_1_1HttpResponse.html#a046e5e829a3cbd2ef7069370911cea1e">drogon::HttpResponse::getVersion</a></div><div class="ttdeci">Version getVersion() const</div><div class="ttdoc">Return the enum type version of the response.</div><div class="ttdef"><b>Definition</b> HttpResponse.h:335</div></div>
<div class="ttc" id="aclassdrogon_1_1HttpResponse_html_a0506888a960fa85365cc729c5ca35eb0"><div class="ttname"><a href="classdrogon_1_1HttpResponse.html#a0506888a960fa85365cc729c5ca35eb0">drogon::HttpResponse::addHeader</a></div><div class="ttdeci">virtual void addHeader(std::string field, std::string &amp;&amp;value)=0</div></div>
<div class="ttc" id="aclassdrogon_1_1HttpResponse_html_a07e21a5e58fbd8b859a9810bf338403d"><div class="ttname"><a href="classdrogon_1_1HttpResponse.html#a07e21a5e58fbd8b859a9810bf338403d">drogon::HttpResponse::creationDate</a></div><div class="ttdeci">virtual const trantor::Date &amp; creationDate() const =0</div><div class="ttdoc">Get the creation timestamp of the response.</div></div>
<div class="ttc" id="aclassdrogon_1_1HttpResponse_html_a18114e50a4274cebdab859bf8d9deb1e"><div class="ttname"><a href="classdrogon_1_1HttpResponse.html#a18114e50a4274cebdab859bf8d9deb1e">drogon::HttpResponse::setBody</a></div><div class="ttdeci">virtual void setBody(const std::string &amp;body)=0</div><div class="ttdoc">Set the response body(content).</div></div>
<div class="ttc" id="aclassdrogon_1_1HttpResponse_html_a1cf39df6715c6d2340bb045cd94f76c3"><div class="ttname"><a href="classdrogon_1_1HttpResponse.html#a1cf39df6715c6d2340bb045cd94f76c3">drogon::HttpResponse::getBody</a></div><div class="ttdeci">std::string_view getBody() const</div><div class="ttdoc">Get the response body.</div><div class="ttdef"><b>Definition</b> HttpResponse.h:313</div></div>
<div class="ttc" id="aclassdrogon_1_1HttpResponse_html_a1fbbcf3c1f7c799693bfeadf0d9f5adb"><div class="ttname"><a href="classdrogon_1_1HttpResponse.html#a1fbbcf3c1f7c799693bfeadf0d9f5adb">drogon::HttpResponse::getPeerCertificate</a></div><div class="ttdeci">const trantor::CertificatePtr &amp; getPeerCertificate() const</div><div class="ttdef"><b>Definition</b> HttpResponse.h:393</div></div>
<div class="ttc" id="aclassdrogon_1_1HttpResponse_html_a202565ddc4967af0a3d96f6d04781b97"><div class="ttname"><a href="classdrogon_1_1HttpResponse.html#a202565ddc4967af0a3d96f6d04781b97">drogon::HttpResponse::getStatusCode</a></div><div class="ttdeci">HttpStatusCode getStatusCode() const</div><div class="ttdef"><b>Definition</b> HttpResponse.h:150</div></div>
<div class="ttc" id="aclassdrogon_1_1HttpResponse_html_a259114437157085d2f3dda48a181e264"><div class="ttname"><a href="classdrogon_1_1HttpResponse.html#a259114437157085d2f3dda48a181e264">drogon::HttpResponse::sendfileRange</a></div><div class="ttdeci">virtual const SendfileRange &amp; sendfileRange() const =0</div></div>
<div class="ttc" id="aclassdrogon_1_1HttpResponse_html_a278c40a9ac60b899e9b6217bf5a4b987"><div class="ttname"><a href="classdrogon_1_1HttpResponse.html#a278c40a9ac60b899e9b6217bf5a4b987">drogon::HttpResponse::getVersionString</a></div><div class="ttdeci">const char * getVersionString() const</div><div class="ttdef"><b>Definition</b> HttpResponse.h:322</div></div>
<div class="ttc" id="aclassdrogon_1_1HttpResponse_html_a40d143dcb8508d7618ee0f0d7c19ef23"><div class="ttname"><a href="classdrogon_1_1HttpResponse.html#a40d143dcb8508d7618ee0f0d7c19ef23">drogon::HttpResponse::newCustomHttpResponse</a></div><div class="ttdeci">static HttpResponsePtr newCustomHttpResponse(T &amp;&amp;obj)</div><div class="ttdoc">Create a custom HTTP response object. For using this template, users must specialize the toResponse t...</div><div class="ttdef"><b>Definition</b> HttpResponse.h:550</div></div>
<div class="ttc" id="aclassdrogon_1_1HttpResponse_html_a40d7c826a667934774e2b93c39e7a557"><div class="ttname"><a href="classdrogon_1_1HttpResponse.html#a40d7c826a667934774e2b93c39e7a557">drogon::HttpResponse::contentType</a></div><div class="ttdeci">virtual ContentType contentType() const =0</div><div class="ttdoc">Get the response content type.</div></div>
<div class="ttc" id="aclassdrogon_1_1HttpResponse_html_a44ad31ad5d49291836b96434b5e7fc4a"><div class="ttname"><a href="classdrogon_1_1HttpResponse.html#a44ad31ad5d49291836b96434b5e7fc4a">drogon::HttpResponse::SendfileRange</a></div><div class="ttdeci">std::pair&lt; size_t, size_t &gt; SendfileRange</div><div class="ttdoc">Returns the range of the file response as a pair ot size_t (offset, length). Length of 0 means the en...</div><div class="ttdef"><b>Definition</b> HttpResponse.h:567</div></div>
<div class="ttc" id="aclassdrogon_1_1HttpResponse_html_a4a499e596719ced362e9eeae50de93c9"><div class="ttname"><a href="classdrogon_1_1HttpResponse.html#a4a499e596719ced362e9eeae50de93c9">drogon::HttpResponse::getJsonObject</a></div><div class="ttdeci">const std::shared_ptr&lt; Json::Value &gt; &amp; getJsonObject() const</div><div class="ttdef"><b>Definition</b> HttpResponse.h:361</div></div>
<div class="ttc" id="aclassdrogon_1_1HttpResponse_html_a4b5d3ef182dbf502aa1ce5f754735a2c"><div class="ttname"><a href="classdrogon_1_1HttpResponse.html#a4b5d3ef182dbf502aa1ce5f754735a2c">drogon::HttpResponse::headers</a></div><div class="ttdeci">virtual const SafeStringMap&lt; std::string &gt; &amp; headers() const =0</div><div class="ttdoc">Get all headers of the response</div></div>
<div class="ttc" id="aclassdrogon_1_1HttpResponse_html_a4e18484f63f6da85c403a44605de5ee8"><div class="ttname"><a href="classdrogon_1_1HttpResponse.html#a4e18484f63f6da85c403a44605de5ee8">drogon::HttpResponse::~HttpResponse</a></div><div class="ttdeci">virtual ~HttpResponse()</div><div class="ttdef"><b>Definition</b> HttpResponse.h:590</div></div>
<div class="ttc" id="aclassdrogon_1_1HttpResponse_html_a53ecb77166d6b2d40bda2a33346b271c"><div class="ttname"><a href="classdrogon_1_1HttpResponse.html#a53ecb77166d6b2d40bda2a33346b271c">drogon::HttpResponse::addHeader</a></div><div class="ttdeci">virtual void addHeader(std::string field, const std::string &amp;value)=0</div><div class="ttdoc">Set the header string identified by the field parameter</div></div>
<div class="ttc" id="aclassdrogon_1_1HttpResponse_html_a569c7cd5efff996af64e1103243b2249"><div class="ttname"><a href="classdrogon_1_1HttpResponse.html#a569c7cd5efff996af64e1103243b2249">drogon::HttpResponse::cookies</a></div><div class="ttdeci">virtual const SafeStringMap&lt; Cookie &gt; &amp; cookies() const =0</div><div class="ttdoc">Get all cookies.</div></div>
<div class="ttc" id="aclassdrogon_1_1HttpResponse_html_a57164725a0789fe9458de20ac6b6c402"><div class="ttname"><a href="classdrogon_1_1HttpResponse.html#a57164725a0789fe9458de20ac6b6c402">drogon::HttpResponse::getCookie</a></div><div class="ttdeci">virtual const Cookie &amp; getCookie(const std::string &amp;key) const =0</div></div>
<div class="ttc" id="aclassdrogon_1_1HttpResponse_html_a57e800f8ad97516cb4738333b7afcba3"><div class="ttname"><a href="classdrogon_1_1HttpResponse.html#a57e800f8ad97516cb4738333b7afcba3">drogon::HttpResponse::jsonObject</a></div><div class="ttdeci">virtual const std::shared_ptr&lt; Json::Value &gt; &amp; jsonObject() const =0</div></div>
<div class="ttc" id="aclassdrogon_1_1HttpResponse_html_a58081265552934448a6c40e521607985"><div class="ttname"><a href="classdrogon_1_1HttpResponse.html#a58081265552934448a6c40e521607985">drogon::HttpResponse::getExpiredTime</a></div><div class="ttdeci">ssize_t getExpiredTime() const</div><div class="ttdef"><b>Definition</b> HttpResponse.h:351</div></div>
<div class="ttc" id="aclassdrogon_1_1HttpResponse_html_a63c26ba958c691523e807de77e8e8ed1"><div class="ttname"><a href="classdrogon_1_1HttpResponse.html#a63c26ba958c691523e807de77e8e8ed1">drogon::HttpResponse::body</a></div><div class="ttdeci">std::string_view body() const</div><div class="ttdoc">Get the response body.</div><div class="ttdef"><b>Definition</b> HttpResponse.h:307</div></div>
<div class="ttc" id="aclassdrogon_1_1HttpResponse_html_a66d24be506a03dd6bd0b390632ba8d5c"><div class="ttname"><a href="classdrogon_1_1HttpResponse.html#a66d24be506a03dd6bd0b390632ba8d5c">drogon::HttpResponse::setContentTypeCode</a></div><div class="ttdeci">virtual void setContentTypeCode(ContentType type)=0</div></div>
<div class="ttc" id="aclassdrogon_1_1HttpResponse_html_a6bbaaa5b26a83176827ce4a9d2792da2"><div class="ttname"><a href="classdrogon_1_1HttpResponse.html#a6bbaaa5b26a83176827ce4a9d2792da2">drogon::HttpResponse::expiredTime</a></div><div class="ttdeci">virtual ssize_t expiredTime() const =0</div><div class="ttdoc">Get the expiration time of the response.</div></div>
<div class="ttc" id="aclassdrogon_1_1HttpResponse_html_a6cecffb5a8b7095577a3bf5b2d6f0d6b"><div class="ttname"><a href="classdrogon_1_1HttpResponse.html#a6cecffb5a8b7095577a3bf5b2d6f0d6b">drogon::HttpResponse::getCookies</a></div><div class="ttdeci">const SafeStringMap&lt; Cookie &gt; &amp; getCookies() const</div><div class="ttdoc">Get all cookies.</div><div class="ttdef"><b>Definition</b> HttpResponse.h:281</div></div>
<div class="ttc" id="aclassdrogon_1_1HttpResponse_html_a7001b5fa3cf32b1401c01e65fcafa4d7"><div class="ttname"><a href="classdrogon_1_1HttpResponse.html#a7001b5fa3cf32b1401c01e65fcafa4d7">drogon::HttpResponse::newHttpViewResponse</a></div><div class="ttdeci">static HttpResponsePtr newHttpViewResponse(const std::string &amp;viewName, const HttpViewData &amp;data=HttpViewData(), const HttpRequestPtr &amp;req=HttpRequestPtr())</div></div>
<div class="ttc" id="aclassdrogon_1_1HttpResponse_html_a7091b020a4c8212b170c0ae71a77adea"><div class="ttname"><a href="classdrogon_1_1HttpResponse.html#a7091b020a4c8212b170c0ae71a77adea">drogon::HttpResponse::statusCode</a></div><div class="ttdeci">virtual HttpStatusCode statusCode() const =0</div><div class="ttdoc">Get the status code such as 200, 404</div></div>
<div class="ttc" id="aclassdrogon_1_1HttpResponse_html_a76e9f38d3cf0b6b69d23d1f53ce5afbe"><div class="ttname"><a href="classdrogon_1_1HttpResponse.html#a76e9f38d3cf0b6b69d23d1f53ce5afbe">drogon::HttpResponse::newHttpResponse</a></div><div class="ttdeci">static HttpResponsePtr newHttpResponse()</div></div>
<div class="ttc" id="aclassdrogon_1_1HttpResponse_html_a76f37d51bf036afb28aacaa229a1823b"><div class="ttname"><a href="classdrogon_1_1HttpResponse.html#a76f37d51bf036afb28aacaa229a1823b">drogon::HttpResponse::removeHeader</a></div><div class="ttdeci">virtual void removeHeader(std::string key)=0</div><div class="ttdoc">Remove the header identified by the key parameter.</div></div>
<div class="ttc" id="aclassdrogon_1_1HttpResponse_html_a77a3c7a91c08d0976851beb1552fde81"><div class="ttname"><a href="classdrogon_1_1HttpResponse.html#a77a3c7a91c08d0976851beb1552fde81">drogon::HttpResponse::versionString</a></div><div class="ttdeci">virtual const char * versionString() const =0</div></div>
<div class="ttc" id="aclassdrogon_1_1HttpResponse_html_a78ef3f2563aeba016ae88cc7a0a6a123"><div class="ttname"><a href="classdrogon_1_1HttpResponse.html#a78ef3f2563aeba016ae88cc7a0a6a123">drogon::HttpResponse::removeCookie</a></div><div class="ttdeci">virtual void removeCookie(const std::string &amp;key)=0</div><div class="ttdoc">Remove the cookie identified by the key parameter.</div></div>
<div class="ttc" id="aclassdrogon_1_1HttpResponse_html_a7a97046bc1d9c458bc117860e6327eed"><div class="ttname"><a href="classdrogon_1_1HttpResponse.html#a7a97046bc1d9c458bc117860e6327eed">drogon::HttpResponse::addCookie</a></div><div class="ttdeci">virtual void addCookie(const Cookie &amp;cookie)=0</div><div class="ttdoc">Add a cookie</div></div>
<div class="ttc" id="aclassdrogon_1_1HttpResponse_html_a82c46a1155b1ff1494f5995b241b4034"><div class="ttname"><a href="classdrogon_1_1HttpResponse.html#a82c46a1155b1ff1494f5995b241b4034">drogon::HttpResponse::newHttpJsonResponse</a></div><div class="ttdeci">static HttpResponsePtr newHttpJsonResponse(const Json::Value &amp;data)</div></div>
<div class="ttc" id="aclassdrogon_1_1HttpResponse_html_a83349a48d7e179abaace8d16d020cef4"><div class="ttname"><a href="classdrogon_1_1HttpResponse.html#a83349a48d7e179abaace8d16d020cef4">drogon::HttpResponse::newStreamResponse</a></div><div class="ttdeci">static HttpResponsePtr newStreamResponse(const std::function&lt; std::size_t(char *, std::size_t)&gt; &amp;callback, const std::string &amp;attachmentFileName=&quot;&quot;, ContentType type=CT_NONE, const std::string &amp;typeString=&quot;&quot;, const HttpRequestPtr &amp;req=HttpRequestPtr())</div></div>
<div class="ttc" id="aclassdrogon_1_1HttpResponse_html_a83447cc5e0ef7135146f1ce5059d39b8"><div class="ttname"><a href="classdrogon_1_1HttpResponse.html#a83447cc5e0ef7135146f1ce5059d39b8">drogon::HttpResponse::newFileResponse</a></div><div class="ttdeci">static HttpResponsePtr newFileResponse(const std::string &amp;fullPath, size_t offset, size_t length, bool setContentRange=true, const std::string &amp;attachmentFileName=&quot;&quot;, ContentType type=CT_NONE, const std::string &amp;typeString=&quot;&quot;, const HttpRequestPtr &amp;req=HttpRequestPtr())</div><div class="ttdoc">Create a response that returns part of a file to the client.</div></div>
<div class="ttc" id="aclassdrogon_1_1HttpResponse_html_a8800fe9bd787342db3b231d6996a8cfe"><div class="ttname"><a href="classdrogon_1_1HttpResponse.html#a8800fe9bd787342db3b231d6996a8cfe">drogon::HttpResponse::newFileResponse</a></div><div class="ttdeci">static HttpResponsePtr newFileResponse(const std::string &amp;fullPath, const std::string &amp;attachmentFileName=&quot;&quot;, ContentType type=CT_NONE, const std::string &amp;typeString=&quot;&quot;, const HttpRequestPtr &amp;req=HttpRequestPtr())</div><div class="ttdoc">Create a response that returns a file to the client.</div></div>
<div class="ttc" id="aclassdrogon_1_1HttpResponse_html_a8d1bc11f80d93ad6a8ee7fb64e51dde0"><div class="ttname"><a href="classdrogon_1_1HttpResponse.html#a8d1bc11f80d93ad6a8ee7fb64e51dde0">drogon::HttpResponse::sendfileName</a></div><div class="ttdeci">virtual const std::string &amp; sendfileName() const =0</div><div class="ttdoc">If the response is a file response (i.e. created by newFileResponse) returns the path on the filesyst...</div></div>
<div class="ttc" id="aclassdrogon_1_1HttpResponse_html_a91282f3ceb97ea8c6625c9cd8ea98018"><div class="ttname"><a href="classdrogon_1_1HttpResponse.html#a91282f3ceb97ea8c6625c9cd8ea98018">drogon::HttpResponse::ifCloseConnection</a></div><div class="ttdeci">virtual bool ifCloseConnection() const =0</div><div class="ttdoc">Get the status set by the setCloseConnection() method.</div></div>
<div class="ttc" id="aclassdrogon_1_1HttpResponse_html_a94dacca25b2485e1dd750235986f9fdd"><div class="ttname"><a href="classdrogon_1_1HttpResponse.html#a94dacca25b2485e1dd750235986f9fdd">drogon::HttpResponse::getHeader</a></div><div class="ttdeci">virtual const std::string &amp; getHeader(std::string key) const =0</div><div class="ttdoc">Get the header string identified by the key parameter.</div></div>
<div class="ttc" id="aclassdrogon_1_1HttpResponse_html_a953a8ca52e9f14b44f076f576c86dbd6"><div class="ttname"><a href="classdrogon_1_1HttpResponse.html#a953a8ca52e9f14b44f076f576c86dbd6">drogon::HttpResponse::newRedirectionResponse</a></div><div class="ttdeci">static HttpResponsePtr newRedirectionResponse(const std::string &amp;location, HttpStatusCode status=k302Found)</div></div>
<div class="ttc" id="aclassdrogon_1_1HttpResponse_html_a954b1cb990ba8834eeb6678e9ae740b0"><div class="ttname"><a href="classdrogon_1_1HttpResponse.html#a954b1cb990ba8834eeb6678e9ae740b0">drogon::HttpResponse::getContentType</a></div><div class="ttdeci">ContentType getContentType() const</div><div class="ttdef"><b>Definition</b> HttpResponse.h:226</div></div>
<div class="ttc" id="aclassdrogon_1_1HttpResponse_html_a975259181a13f0ab238ef5325caf8b8b"><div class="ttname"><a href="classdrogon_1_1HttpResponse.html#a975259181a13f0ab238ef5325caf8b8b">drogon::HttpResponse::setExpiredTime</a></div><div class="ttdeci">virtual void setExpiredTime(ssize_t expiredTime)=0</div></div>
<div class="ttc" id="aclassdrogon_1_1HttpResponse_html_a99c9e306078005a68455e3157884f483"><div class="ttname"><a href="classdrogon_1_1HttpResponse.html#a99c9e306078005a68455e3157884f483">drogon::HttpResponse::version</a></div><div class="ttdeci">virtual Version version() const =0</div><div class="ttdoc">Return the enum type version of the response.</div></div>
<div class="ttc" id="aclassdrogon_1_1HttpResponse_html_aa1f02075d07dd25e1d9650773858def2"><div class="ttname"><a href="classdrogon_1_1HttpResponse.html#aa1f02075d07dd25e1d9650773858def2">drogon::HttpResponse::setContentTypeCodeAndCustomString</a></div><div class="ttdeci">void setContentTypeCodeAndCustomString(ContentType type, const char(&amp;typeString)[N])</div><div class="ttdef"><b>Definition</b> HttpResponse.h:212</div></div>
<div class="ttc" id="aclassdrogon_1_1HttpResponse_html_aa409a489a6bb1b7b9a4fd01aee2ed3d7"><div class="ttname"><a href="classdrogon_1_1HttpResponse.html#aa409a489a6bb1b7b9a4fd01aee2ed3d7">drogon::HttpResponse::newHttpResponse</a></div><div class="ttdeci">static HttpResponsePtr newHttpResponse(HttpStatusCode code, ContentType type)</div><div class="ttdoc">Create a response with a status code and a content type</div></div>
<div class="ttc" id="aclassdrogon_1_1HttpResponse_html_aad3deeeee0abe826a7800402a24475b8"><div class="ttname"><a href="classdrogon_1_1HttpResponse.html#aad3deeeee0abe826a7800402a24475b8">drogon::HttpResponse::setVersion</a></div><div class="ttdeci">virtual void setVersion(const Version v)=0</div><div class="ttdoc">Set the http version, http1.0 or http1.1</div></div>
<div class="ttc" id="aclassdrogon_1_1HttpResponse_html_ab2bd4aa9c3b2caa800534f3013b491e8"><div class="ttname"><a href="classdrogon_1_1HttpResponse.html#ab2bd4aa9c3b2caa800534f3013b491e8">drogon::HttpResponse::newHttpJsonResponse</a></div><div class="ttdeci">static HttpResponsePtr newHttpJsonResponse(Json::Value &amp;&amp;data)</div></div>
<div class="ttc" id="aclassdrogon_1_1HttpResponse_html_abf88889bd7729e6f80ee8d5322c9e931"><div class="ttname"><a href="classdrogon_1_1HttpResponse.html#abf88889bd7729e6f80ee8d5322c9e931">drogon::HttpResponse::setCustomStatusCode</a></div><div class="ttdeci">void setCustomStatusCode(int code, std::string_view message=std::string_view{})</div><div class="ttdef"><b>Definition</b> HttpResponse.h:158</div></div>
<div class="ttc" id="aclassdrogon_1_1HttpResponse_html_ac1523682a313c946849b7234cc4891ab"><div class="ttname"><a href="classdrogon_1_1HttpResponse.html#ac1523682a313c946849b7234cc4891ab">drogon::HttpResponse::setStatusCode</a></div><div class="ttdeci">virtual void setStatusCode(HttpStatusCode code)=0</div><div class="ttdoc">Set the status code of the response.</div></div>
<div class="ttc" id="aclassdrogon_1_1HttpResponse_html_ac65360ebe2d7e39013627fb7c1c97201"><div class="ttname"><a href="classdrogon_1_1HttpResponse.html#ac65360ebe2d7e39013627fb7c1c97201">drogon::HttpResponse::addCookie</a></div><div class="ttdeci">virtual void addCookie(Cookie &amp;&amp;cookie)=0</div></div>
<div class="ttc" id="aclassdrogon_1_1HttpResponse_html_ac9ee5b698aa6bfa317ef81cd69a6d821"><div class="ttname"><a href="classdrogon_1_1HttpResponse.html#ac9ee5b698aa6bfa317ef81cd69a6d821">drogon::HttpResponse::setContentTypeString</a></div><div class="ttdeci">void setContentTypeString(const std::string_view &amp;typeString)</div><div class="ttdef"><b>Definition</b> HttpResponse.h:195</div></div>
<div class="ttc" id="aclassdrogon_1_1HttpResponse_html_aca1cb08090fe9c6195d708a63e32f65f"><div class="ttname"><a href="classdrogon_1_1HttpResponse.html#aca1cb08090fe9c6195d708a63e32f65f">drogon::HttpResponse::as</a></div><div class="ttdeci">T as() const</div><div class="ttdoc">This template enables explicit type conversion, see the above template.</div><div class="ttdef"><b>Definition</b> HttpResponse.h:142</div></div>
<div class="ttc" id="aclassdrogon_1_1HttpResponse_html_aca2d38ae5fd48790b299933559f6e537"><div class="ttname"><a href="classdrogon_1_1HttpResponse.html#aca2d38ae5fd48790b299933559f6e537">drogon::HttpResponse::newAsyncStreamResponse</a></div><div class="ttdeci">static HttpResponsePtr newAsyncStreamResponse(const std::function&lt; void(ResponseStreamPtr)&gt; &amp;callback, bool disableKickoffTimeout=false)</div></div>
<div class="ttc" id="aclassdrogon_1_1HttpResponse_html_acb269abb75024232eb5ebb70df076dc5"><div class="ttname"><a href="classdrogon_1_1HttpResponse.html#acb269abb75024232eb5ebb70df076dc5">drogon::HttpResponse::getCreationDate</a></div><div class="ttdeci">const trantor::Date &amp; getCreationDate() const</div><div class="ttdef"><b>Definition</b> HttpResponse.h:167</div></div>
<div class="ttc" id="aclassdrogon_1_1HttpResponse_html_ad4c84b9f7260314d84235cf311f5e39e"><div class="ttname"><a href="classdrogon_1_1HttpResponse.html#ad4c84b9f7260314d84235cf311f5e39e">drogon::HttpResponse::newFileResponse</a></div><div class="ttdeci">static HttpResponsePtr newFileResponse(const unsigned char *pBuffer, size_t bufferLength, const std::string &amp;attachmentFileName=&quot;&quot;, ContentType type=CT_NONE, const std::string &amp;typeString=&quot;&quot;)</div></div>
<div class="ttc" id="aclassdrogon_1_1HttpResponse_html_ad5832929b4c9e740ac49e57af205b8d8"><div class="ttname"><a href="classdrogon_1_1HttpResponse.html#ad5832929b4c9e740ac49e57af205b8d8">drogon::HttpResponse::asyncStreamCallback</a></div><div class="ttdeci">virtual const std::function&lt; void(ResponseStreamPtr)&gt; &amp; asyncStreamCallback() const =0</div><div class="ttdoc">If the response is a async stream response (i.e. created by asyncStreamCallback) returns the stream p...</div></div>
<div class="ttc" id="aclassdrogon_1_1HttpResponse_html_adc5e9e155d366c487c1601feca9b8203"><div class="ttname"><a href="classdrogon_1_1HttpResponse.html#adc5e9e155d366c487c1601feca9b8203">drogon::HttpResponse::setBody</a></div><div class="ttdeci">void setBody(const char(&amp;body)[N])</div><div class="ttdoc">Set the response body(content).</div><div class="ttdef"><b>Definition</b> HttpResponse.h:300</div></div>
<div class="ttc" id="aclassdrogon_1_1HttpResponse_html_ae00c3140bb4759feaea8fc7f7e82e940"><div class="ttname"><a href="classdrogon_1_1HttpResponse.html#ae00c3140bb4759feaea8fc7f7e82e940">drogon::HttpResponse::peerCertificate</a></div><div class="ttdeci">virtual const trantor::CertificatePtr &amp; peerCertificate() const =0</div><div class="ttdoc">Get the certificate of the peer, if any.</div></div>
<div class="ttc" id="aclassdrogon_1_1HttpResponse_html_ae7dbe82af88eae091b7684edb67d5f99"><div class="ttname"><a href="classdrogon_1_1HttpResponse.html#ae7dbe82af88eae091b7684edb67d5f99">drogon::HttpResponse::newNotFoundResponse</a></div><div class="ttdeci">static HttpResponsePtr newNotFoundResponse(const HttpRequestPtr &amp;req=HttpRequestPtr())</div><div class="ttdoc">Create a response which returns a 404 page.</div></div>
<div class="ttc" id="aclassdrogon_1_1HttpResponse_html_aec5f18f112c1a8ffd253cf31c2c84fd4"><div class="ttname"><a href="classdrogon_1_1HttpResponse.html#aec5f18f112c1a8ffd253cf31c2c84fd4">drogon::HttpResponse::setPassThrough</a></div><div class="ttdeci">virtual void setPassThrough(bool flag)=0</div><div class="ttdoc">Set the response object to the pass-through mode or not. It's not by default when a new response obje...</div></div>
<div class="ttc" id="aclassdrogon_1_1HttpResponse_html_aed36ab5336669f7db117913c8d028b2a"><div class="ttname"><a href="classdrogon_1_1HttpResponse.html#aed36ab5336669f7db117913c8d028b2a">drogon::HttpResponse::contentTypeString</a></div><div class="ttdeci">virtual std::string contentTypeString() const =0</div><div class="ttdoc">Returns the content type associated with the response</div></div>
<div class="ttc" id="aclassdrogon_1_1HttpResponse_html_aee0e2cdc4ac1096ff9ad85d7ecaba38f"><div class="ttname"><a href="classdrogon_1_1HttpResponse.html#aee0e2cdc4ac1096ff9ad85d7ecaba38f">drogon::HttpResponse::getHeaders</a></div><div class="ttdeci">const SafeStringMap&lt; std::string &gt; &amp; getHeaders() const</div><div class="ttdoc">Get all headers of the response</div><div class="ttdef"><b>Definition</b> HttpResponse.h:250</div></div>
<div class="ttc" id="aclassdrogon_1_1HttpResponse_html_af254863ebc2d6f3ff9679515be4a4d61"><div class="ttname"><a href="classdrogon_1_1HttpResponse.html#af254863ebc2d6f3ff9679515be4a4d61">drogon::HttpResponse::setContentTypeCodeAndCustomString</a></div><div class="ttdeci">void setContentTypeCodeAndCustomString(ContentType type, const std::string_view &amp;typeString)</div><div class="ttdef"><b>Definition</b> HttpResponse.h:203</div></div>
<div class="ttc" id="aclassdrogon_1_1HttpResponse_html_af345a0cc25536620c01dafcc04667bfa"><div class="ttname"><a href="classdrogon_1_1HttpResponse.html#af345a0cc25536620c01dafcc04667bfa">drogon::HttpResponse::streamCallback</a></div><div class="ttdeci">virtual const std::function&lt; std::size_t(char *, std::size_t)&gt; &amp; streamCallback() const =0</div><div class="ttdoc">If the response is a stream response (i.e. created by newStreamResponse) returns the callback functio...</div></div>
<div class="ttc" id="aclassdrogon_1_1HttpResponse_html_afb116c3db7cd2b29f8d6a574eb60a9b4"><div class="ttname"><a href="classdrogon_1_1HttpResponse.html#afb116c3db7cd2b29f8d6a574eb60a9b4">drogon::HttpResponse::addCookie</a></div><div class="ttdeci">virtual void addCookie(const std::string &amp;key, const std::string &amp;value)=0</div><div class="ttdoc">Add a cookie</div></div>
<div class="ttc" id="aclassdrogon_1_1HttpResponse_html_afdaff2509394ba08e58584aa7209e625"><div class="ttname"><a href="classdrogon_1_1HttpResponse.html#afdaff2509394ba08e58584aa7209e625">drogon::HttpResponse::getJsonError</a></div><div class="ttdeci">virtual const std::string &amp; getJsonError() const =0</div><div class="ttdoc">Get the error message of parsing the JSON body received from peer. This method usually is called afte...</div></div>
<div class="ttc" id="aclassdrogon_1_1HttpResponse_html_afde0d1d460db8890a988b546f8e37922"><div class="ttname"><a href="classdrogon_1_1HttpResponse.html#afde0d1d460db8890a988b546f8e37922">drogon::HttpResponse::setCloseConnection</a></div><div class="ttdeci">virtual void setCloseConnection(bool on)=0</div><div class="ttdoc">Set if close the connection after the request is sent.</div></div>
<div class="ttc" id="aclassdrogon_1_1HttpViewData_html"><div class="ttname"><a href="classdrogon_1_1HttpViewData.html">drogon::HttpViewData</a></div><div class="ttdoc">This class represents the data set displayed in views.</div><div class="ttdef"><b>Definition</b> HttpViewData.h:33</div></div>
<div class="ttc" id="aclassdrogon_1_1ResponseStream_html"><div class="ttname"><a href="classdrogon_1_1ResponseStream.html">drogon::ResponseStream</a></div><div class="ttdef"><b>Definition</b> HttpResponse.h:75</div></div>
<div class="ttc" id="aclassdrogon_1_1ResponseStream_html_a282f028bbb57e8a4886d523a751a1beb"><div class="ttname"><a href="classdrogon_1_1ResponseStream.html#a282f028bbb57e8a4886d523a751a1beb">drogon::ResponseStream::~ResponseStream</a></div><div class="ttdeci">~ResponseStream()</div><div class="ttdef"><b>Definition</b> HttpResponse.h:82</div></div>
<div class="ttc" id="aclassdrogon_1_1ResponseStream_html_a64985051cf88263122f2bff7edeb67c7"><div class="ttname"><a href="classdrogon_1_1ResponseStream.html#a64985051cf88263122f2bff7edeb67c7">drogon::ResponseStream::close</a></div><div class="ttdeci">void close()</div><div class="ttdef"><b>Definition</b> HttpResponse.h:99</div></div>
<div class="ttc" id="aclassdrogon_1_1ResponseStream_html_a75ba3e5850fa69ce3f335e04d58c093b"><div class="ttname"><a href="classdrogon_1_1ResponseStream.html#a75ba3e5850fa69ce3f335e04d58c093b">drogon::ResponseStream::send</a></div><div class="ttdeci">bool send(const std::string &amp;data)</div><div class="ttdef"><b>Definition</b> HttpResponse.h:87</div></div>
<div class="ttc" id="aclassdrogon_1_1ResponseStream_html_afdc1d568c3c9b2268143dc7806df6988"><div class="ttname"><a href="classdrogon_1_1ResponseStream.html#afdc1d568c3c9b2268143dc7806df6988">drogon::ResponseStream::ResponseStream</a></div><div class="ttdeci">ResponseStream(trantor::AsyncStreamPtr asyncStream)</div><div class="ttdef"><b>Definition</b> HttpResponse.h:77</div></div>
<div class="ttc" id="aexports_8h_html"><div class="ttname"><a href="exports_8h.html">exports.h</a></div></div>
<div class="ttc" id="aexports_8h_html_a00d0a001c2dd03906272e00b0598182e"><div class="ttname"><a href="exports_8h.html#a00d0a001c2dd03906272e00b0598182e">DROGON_EXPORT</a></div><div class="ttdeci">#define DROGON_EXPORT</div><div class="ttdef"><b>Definition</b> exports.h:15</div></div>
<div class="ttc" id="anamespacedrogon_html"><div class="ttname"><a href="namespacedrogon.html">drogon</a></div><div class="ttdoc">Drogon Test is a minimal effort test framework developed because the major C++ test frameworks doesn'...</div><div class="ttdef"><b>Definition</b> Attribute.h:23</div></div>
<div class="ttc" id="anamespacedrogon_html_a2037a41934aeea1598d7468b4b8cb823"><div class="ttname"><a href="namespacedrogon.html#a2037a41934aeea1598d7468b4b8cb823">drogon::ContentType</a></div><div class="ttdeci">ContentType</div><div class="ttdef"><b>Definition</b> HttpTypes.h:100</div></div>
<div class="ttc" id="anamespacedrogon_html_a356eb07dafe947bcd57e42b0f0316489"><div class="ttname"><a href="namespacedrogon.html#a356eb07dafe947bcd57e42b0f0316489">drogon::toResponse&lt; const Json::Value &amp; &gt;</a></div><div class="ttdeci">HttpResponsePtr toResponse&lt; const Json::Value &amp; &gt;(const Json::Value &amp;pJson)</div><div class="ttdef"><b>Definition</b> HttpResponse.h:609</div></div>
<div class="ttc" id="anamespacedrogon_html_a5200699555f98a809538342baa167aad"><div class="ttname"><a href="namespacedrogon.html#a5200699555f98a809538342baa167aad">drogon::HttpRequestPtr</a></div><div class="ttdeci">std::shared_ptr&lt; HttpRequest &gt; HttpRequestPtr</div><div class="ttdef"><b>Definition</b> drogon_callbacks.h:26</div></div>
<div class="ttc" id="anamespacedrogon_html_a938517a807e39a9078d7b76c4ea95306"><div class="ttname"><a href="namespacedrogon.html#a938517a807e39a9078d7b76c4ea95306">drogon::fromResponse</a></div><div class="ttdeci">T fromResponse(const HttpResponse &amp;resp)</div><div class="ttdoc">This template is used to convert a response object to a custom type object. Users must specialize the...</div><div class="ttdef"><b>Definition</b> HttpResponse.h:42</div></div>
<div class="ttc" id="anamespacedrogon_html_ab2a2d829bb017f43c2c9de72f4042baa"><div class="ttname"><a href="namespacedrogon.html#ab2a2d829bb017f43c2c9de72f4042baa">drogon::HttpResponsePtr</a></div><div class="ttdeci">std::shared_ptr&lt; HttpResponse &gt; HttpResponsePtr</div><div class="ttdef"><b>Definition</b> drogon_callbacks.h:24</div></div>
<div class="ttc" id="anamespacedrogon_html_ab5d6977cec5fcf037ae3f2d4a06cf26a"><div class="ttname"><a href="namespacedrogon.html#ab5d6977cec5fcf037ae3f2d4a06cf26a">drogon::toResponse&lt; Json::Value &amp; &gt;</a></div><div class="ttdeci">HttpResponsePtr toResponse&lt; Json::Value &amp; &gt;(Json::Value &amp;pJson)</div><div class="ttdef"><b>Definition</b> HttpResponse.h:69</div></div>
<div class="ttc" id="anamespacedrogon_html_ac29de97af31aae6951b30d7ef8749fd9"><div class="ttname"><a href="namespacedrogon.html#ac29de97af31aae6951b30d7ef8749fd9">drogon::ResponseStreamPtr</a></div><div class="ttdeci">std::unique_ptr&lt; ResponseStream &gt; ResponseStreamPtr</div><div class="ttdef"><b>Definition</b> HttpResponse.h:114</div></div>
<div class="ttc" id="anamespacedrogon_html_ac6b3a6bb435a379d956658fa20b067c1"><div class="ttname"><a href="namespacedrogon.html#ac6b3a6bb435a379d956658fa20b067c1">drogon::Version</a></div><div class="ttdeci">Version</div><div class="ttdef"><b>Definition</b> HttpTypes.h:93</div></div>
<div class="ttc" id="anamespacedrogon_html_ad6cc6b2c3917537432fcde077e02cf2f"><div class="ttname"><a href="namespacedrogon.html#ad6cc6b2c3917537432fcde077e02cf2f">drogon::HttpStatusCode</a></div><div class="ttdeci">HttpStatusCode</div><div class="ttdef"><b>Definition</b> HttpTypes.h:25</div></div>
<div class="ttc" id="anamespacedrogon_html_afecc08ebc1de21d190ebb12b715b19f9"><div class="ttname"><a href="namespacedrogon.html#afecc08ebc1de21d190ebb12b715b19f9">drogon::toResponse</a></div><div class="ttdeci">HttpResponsePtr toResponse(T &amp;&amp;)</div><div class="ttdoc">This template is used to create a response object from a custom type object by calling the newCustomH...</div><div class="ttdef"><b>Definition</b> HttpResponse.h:56</div></div>
</div><!-- fragment --></div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
制作者&#160;<a href="https://www.doxygen.org/index.html"><img class="footer" src="doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.9.8
</small></address>
</body>
</html>
